TTS Http
  • 19 Jul 2024
  • 2 Minutes to read
  • Contributors
  • PDF

TTS Http

  • PDF

Article summary

Text To Speech Integration Node

Parameters:

name
description
default
AddressAddress of the Sestek TTS servicehttp://core-tts
IgnoreSslErrorsignore any certificate errors if Sestek TTS address contains httpsfalse
ConnectionTimeoutMsecConnect timeout for provided address in milliseconds20000
LanguageLanguage will be used in order to determine which of the provided voices will be used for TTS-
CredentialIdId 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)
VoicesThe array of voices that are available for use-

Inputs

Audio:
none

Events:

namedescriptionknown nodes that generate this event
Every Event that has Data.Text fieldA 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 ChangeChange 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:

namedescription
Start of TTS FragmentThis event is send just before a TTS operation writes the result to Audio output.
End of TTS FragmentThis 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.

Sending Custom Events to Projects

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:

image.png

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.

image.png

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.

image.png

Supported flow types: Stream, Batch


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.