Previous topic

SVoice Structure

Next topic

Processors

SVoiceClass StructureΒΆ

speect class SVoiceClass

The SVoiceClass structure.

Protected Attributes
SObjectClass _inherit

Inherit from SObjectClass.

SUtterance *(*const synth_utt)(const SVoice *self, const char *utt_type, SObject *input, s_erc *error)

SynthUtt function pointer.

Synthesize an utterance with the given utterance type and input.

Parameters:
  • self

    The voice used for synthesis.

  • utt_type

    The key of the utterance type as registered in the SVoiceuttTypes container.

  • input

    The input to the synthesizer.

  • error

    Error code.

Return:

The synthesized utterance.

Note:

The voice takes hold of the inputSObject

void(*const re_synth_utt)(const SVoice *self, const char *utt_type, SUtterance *utt, s_erc *error)

ReSynthUtt function pointer.

Re-synthesize an utterance with the given utterance type. This is used when an utterance was synthesized with a certain utterance type, and now it must be synthesized with a different utterance type.

Parameters:
  • self

    The voice used for synthesis.

  • utt_type

    The key of the utterance type as registered in the SVoiceuttTypes container.

  • utt

    The utterance to re-synthesize.

  • error

    Error code.