You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have been using the library and it works correctly, but when I try to apply the TextToSpeech::ssml() method if there is more than 2000 characters (I have verified it and the error is due to the characters) it throws me the following error message: http://prntscr.com/1JW3E4ZRCp-d
The thing is that without using "ssml" I don't have any character limits, or at least for now.
*The tags open <"speak"> and close <"/speak"> are added without quote, but are removed by the code editor adding it here on Github.
$text_polly = '<"speak">I add text here...<amazon:effect vocal-tract-length="+18%"> Vocal tract change!</amazon:effect>up to 2000 characters or less does not give an error, but more 2000 characters show error message<"/speak">';
The text was updated successfully, but these errors were encountered:
sylarlocke
changed the title
Hello, I have been using the library and it works correctly, but when I try to apply the TextToSpeech::ssml() method if there is more than 2000 characters (I have verified it and the error is due to the characters) it throws me the following error message:
Limited number of characters to 2000 when using "ssml" speech and request error "Invalid SSML"
Aug 24, 2022
Hello, I have been using the library and it works correctly, but when I try to apply the TextToSpeech::ssml() method if there is more than 2000 characters (I have verified it and the error is due to the characters) it throws me the following error message:
http://prntscr.com/1JW3E4ZRCp-d
The thing is that without using "ssml" I don't have any character limits, or at least for now.
*The tags open <"speak"> and close <"/speak"> are added without quote, but are removed by the code editor adding it here on Github.
$text_polly = '<"speak">I add text here...<amazon:effect vocal-tract-length="+18%"> Vocal tract change!</amazon:effect>up to 2000 characters or less does not give an error, but more 2000 characters show error message<"/speak">';
$voice = 'Lucia';
$language = 'es-ES';
$options = ['voice' => $voice];
$path = TextToSpeech::language($language);
$path = TextToSpeech::ssml()->saveTo('/mp3/en/test-ssml')->convert($text_polly, $options);
I have been testing on the Amazon Polly AWS page and there it works for me to add more than 2000 characters.
Could it be limited in the API itself?
Originally posted by @sylarlocke in #34
The text was updated successfully, but these errors were encountered: