View Source ExAzureSpeech.TextToSpeech.Messages.SynthesisMessage (ex_azure_speech v0.2.2)

Message used to request a text synthesis, this is a SSML.

Path: ssml
Content-Type: application/ssml+xml
MessageType: text

Summary

Functions

Creates a new SynthesisMessage with the given SSML payload.

Creates a new SynthesisMessage with the given text, voice, and language.

Types

@type t() :: %ExAzureSpeech.TextToSpeech.Messages.SynthesisMessage{
  payload: String.t()
}

Functions

@spec ssml(String.t()) :: t()

Creates a new SynthesisMessage with the given SSML payload.

Link to this function

text(text, voice, language)

View Source
@spec text(String.t(), String.t(), String.t()) :: t()

Creates a new SynthesisMessage with the given text, voice, and language.