markokosticdev / cloud_text_to_speech_flutter

Single interface to Google, Microsoft, and Amazon Text-To-Speech.
https://pub.dev/packages/cloud_text_to_speech
BSD 2-Clause "Simplified" License
4 stars 2 forks source link

400: Bad Request when try to use a Journey voice on google tts. Journey voice don't support SSML #6

Open ryosoul opened 1 week ago

ryosoul commented 1 week ago

First of all, thank you very much for make this package!!

I was receiving 400: bad request, but not find anything wrong with my code. The voice used was 'en-US-Journey-F'. Using other voices then a Journey type works perfectly.

Copying the body from audio_handler and using with Curl give me the next error:

{
  "error": {
    "code": 400,
    "message": "This voice currently does not support SSML input. Please try again with text only input.",
    "status": "INVALID_ARGUMENT"
  }
}

Look's like cloud_text_to_speech_flutter need to use text when using a Journey voice. Best regards.