Text to Speech
The modellake.text_to_speech()
method is used to convert a given text input into speech in a specified language. This functionality can be useful for applications that require text-to-speech capabilities, such as virtual assistants, accessibility features, or any other use case where spoken output is needed.
Example Payload & Method
text_to_speech_request = {
"groc_account_id": "123",
"text": "Hello, this is a direct response example hey hey hey!",
"lang": "en"
}
text_to_speech = modellake.text_to_speech(text_to_speech_request)
print("Text to speech:", text_to_speech)
Example Response
Text to speech: {"Hey there, how are you?"}
Last updated