#TTS API reading out emotion tags as well

12 messages · Page 1 of 1 (latest)

jade hamlet
#

Is it just me or your api doens't support emotion and empahsis tags?
These are working fine with your playground, but fail for API. Is there a captha you have built in to not allow this on API calls ?

tulip island
#

Hi @rocky hedge were you able to solve that? It happens the same to me

granite night
#

Hi! Same question here

sharp grail
#

I find that if it is reading it out I have to run it multiple times. Eventually I can get it to work if I make small changes as I run the software. Sucks, but right now it is where the software is at. Learned to work around it but hope they improve that at some point in the future.

rocky hedge
gusty canyon
#

I came here for the same problem. I'm using almost exactly one of the samples from the SDK developer doc, and it's reading out loud the emotion tags. This doesn't happen in the playground, only when using the API:


session = Session("xxx")
request = TTSRequest( text="(happy) I'm excited to share this!" )

with open("test.mp3", "wb") as f:
    for chunk in session.tts(request):
        f.write(chunk)```
granite night
#

Well, is it possible that it plays S1 in PG by default and v1.5 if you access through API? I don't see how to specify the voice model in API request using Python SDK.

tawdry juniper
#

Hi! Make sure you are using S1 for emotion tag control

tawdry juniper
#
request = TTSRequest(
    reference_id="79973fbd9f374e21b29354e0477389b6",
    text="(happy) It brings me such joy to connect with you",
    format="mp3",
    # top_p=0.8,          # adjust as needed (0.0–1.0)
    # temperature=0.7,    # adjust as needed (0.0–2.0 typically)
)

with open("output1.mp3", "wb") as f:
    for chunk in session.tts(request, backend='s1'):
        f.write(chunk)

see this for python sdk

gusty canyon
#

Can you provide an example of how to do that? I don't see any way to specify the model to use on either the Session or the TTSRequest (Session has some model related calls, but from what I can tell it looks like that is actually creating reference_ids, not models)