P
P
PanDar2021-05-07 11:21:16
speech synthesis
PanDar, 2021-05-07 11:21:16

Why does the speech kit output an empty file?

I make a request through curl, I substitute the token and id, but in the end I get an empty file

curl -X POST \
    -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
    -o speech.raw \
    --data-urlencode "text= тестовый текст" \
    -d "lang=ru-RU&folderId=xxxxxxxxx&format=lpcm&sampleRateHertz=48000" \
    https://tts.api.cloud.yandex.net/speech/v1/tts:synthesize
sox -r 48000 -b 16 -e signed-integer -c 1 speech.raw speech.wav


It's not broken, it's just empty.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PanDar, 2021-05-14
@PanDar

Solved the problem like this. I had a linked account, and I took the folderId of the account to which I am linked, I had to take my own folderId

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question