- Print
- PDF
Text To Speech Integration Node
Parameters:
name | description | default |
---|---|---|
Address | Address of the Sestek TTS service | http://core-tts |
IgnoreSslErrors | ignore any certificate errors if Sestek TTS address contains https | false |
ConnectionTimeoutMsec | Connect timeout for provided address in milliseconds | 20000 |
Language | Language will be used in order to determine which of the provided voices will be used for TTS | - |
CredentialId | Id of the credential that will be used for TTS requests. This parameter is only necessary if a cloud SestekTTS deployment is used. You must leave this empty for on-premise deployments. | None(On-Prem) |
Voices | The array of voices that are available for use | - |
Inputs
Audio:
none
Events:
name | description | known nodes that generate this event |
---|---|---|
Every Event that has Data.Text field | A TTS Synthesis audio can be generated from any event that is text based. Users can also generate their custom event that has Data.Text and send it through the Entry, or External Relay nodes. | SR Http, SR WebSocket, Translate |
Language Change | Change the current voice to match the desired language if there is an avaliable voice. In case of multiple available voices, the first voice in the list will be used. | Text Language Identifier, Language Identifier. |
Outputs
Audio:
Syntesized speech is sent to output
Events:
name | description |
---|---|
Start of TTS Fragment | This event is send just before a TTS operation writes the result to Audio output. |
End of TTS Fragment | This event is send just after a TTS operation has finished writing to Audio output. |
Custom TTS Event
A sample tts-request event would look as follows.
{
"Event": {
"Name": "Custom TTS Event",
"Channel": 0,
"Data" : {
"Text": "hello world"
}
}
}
Channel
: Channel number is necessary for locating the node that will perform the TTS operation.
Data.Text
: The text that will be synthesized.
To learn more about sending Events
to projects, you can check the HTTP and External Relay pages.
Project Structure
A minimum viable TTS project that works with custom events can be built as such:
An example that utilizes two TTS Http nodes with different Voices
can be built as seen below. In order to choose which node does the synthesis, we can change the Channel
variable in our custom event.
Finally, here's an example project that doesn't count on external events, instead, it does simultaneous translation of speech and returns audio segments to the client.
Supported flow types: Stream, Batch