I’m looking to change the voice for the Text-to-Speech output in my React Native app.
I know that the voice is able to be changed by altering the
voice field in this line of code below.
Spokestack.synthesize(input="Hello", format=undefined, voice="demo-male")
However, when I try to change from
"demo-male" to anything else (such as
"casual") I get an error indicating that it doesn’t recognize the string that I am specifying.
I can see the list of available voice models in the Text-to-Speech section on my account page (Spokestack Free, Amateur 1, Amateur 2, etc…) but I don’t see the exact strings that I should write in the code within my app to specify any of these voices. For example, the default “Spokestack Free” voice is specified by using the string
"demo-male" within the code but nowhere on the page does it show the connect between the two.
On the React Native Cookbook page it states that " The
id field is for your convenience, and
voice may be changed by creating a Spokestack account." but I do already have an account and am still not able to change it.
Can I get some guidance on the proper way to change the TTS voice output?