Click or drag to resize
TextToSpeech Class
Can convert text input to audio data.
Inheritance Hierarchy

Namespace: Ozeki.Media
Assembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax
public class TextToSpeech : WaveStreamPlayback

The TextToSpeech type exposes the following members.

Constructors
  NameDescription
Public methodTextToSpeech
Initializes a new instance of the TextToSpeech class
Public methodTextToSpeech(AudioFormat)
Initializes a new instance of the TextToSpeech class
Top
Methods
  NameDescription
Public methodAddAndStartText
Adds a text to the waiting queue and begins the playing with the first text in the queue.
Public methodAddText
Adds text to the waiting queue.
Public methodAddTTSEngine
Public methodChangeLanguage(String)
Changes the language of the TTS engine.
Public methodChangeLanguage(String, String)
Changes the language of the TTS engine.
Public methodChangeVoice
Changes the voice of the TTS engine.
Public methodClear
Clears the input queue.
Public methodDispose
Disposes the object.
(Inherited from DisposableClass.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the TextToSpeech and optionally releases the managed resources
(Overrides TimerBasedMediaStreamHandlerDispose(Boolean).)
Protected methodFinalize
(Inherited from DisposableClass.)
Protected methodGetAudioData (Inherited from AudioStreamPlayback.)
Public methodGetAudioFormat (Inherited from MediaStreamSender.)
Public methodGetAvailableVoices
Returns the collection of available Text-To-Speech voice.
Public methodGetCurrentEngine
Get the current tts engine
Protected methodLoadReader
Initializes the file reader which will read the content of the stream. (This method will be invoked in the LoadStream(Stream) method.)
(Inherited from WaveStreamPlayback.)
Public methodLoadStream (Inherited from AudioStreamPlayback.)
Public methodNextText
Skips the actual text and begins playing the next text.
Public methodPause
Pauses the streaming. (If the streaming is already paused then does nothing.)
(Inherited from MediaStreamSender.)
Protected methodReceiverConnected
This will be called when this object has been connected to an audio receiver.
(Inherited from AudioSender.)
Protected methodReceiverDisconnected
This will be called when this object has been disconnected from an audio receiver.
(Inherited from AudioSender.)
Protected methodSendMediaData (Inherited from AbstractMediaSenderTData, TFormat.)
Protected methodSetPlaybackWaveStream
Changes the playback stream to the given stream.
(Inherited from AudioStreamPlayback.)
Public methodSetPreferredSendFormats (Inherited from AbstractMediaSenderTData, TFormat.)
Public methodStart
Starts playing the queue.
(Overrides TimerBasedMediaStreamHandlerStart.)
Public methodStop
Stops the streaming.
(Inherited from TimerBasedMediaStreamHandler.)
Protected methodTimerTick
This will be called when the built-in timer ticks.
(Inherited from AudioStreamPlayback.)
Top
Fields
  NameDescription
Protected fieldbuffer (Inherited from AudioStreamPlayback.)
Protected fieldOutputFormat (Inherited from MediaStreamSender.)
Protected fieldSync (Inherited from MediaStreamSender.)
Top
Properties
  NameDescription
Public propertyCached
Gets a boolean value indicating whether the playback stream is cached in the memory.
(Inherited from AudioStreamPlayback.)
Public propertyID (Inherited from DisposableClass.)
Protected propertyInterval
Gets the time between the send events (in milliseconds).
(Inherited from TimerBasedMediaStreamHandler.)
Public propertyIsStreaming
Gets or sets a value that is true if the wave is streaming, otherwise false.
(Inherited from MediaStreamSender.)
Public propertyLoop
Protected propertyMediaFormat (Inherited from AudioStreamPlayback.)
Protected propertyPosition
Gets or sets the current position in the audio stream
(Inherited from MediaStreamSender.)
Public propertyRate
Gets or sets the playback rate of the speech. (Range: -10 - 10)
Public propertyStream
Gets the stream
(Inherited from MediaStreamSender.)
Public propertyTexts
Public propertyVoice
Top
Events
Remarks
The text inputs will be placed in a queue. Only one text is being played at a time and when it is finished the next text will be played. Custom text-to-speech implementation can be added to the engine.
See Also