Realtime Text To Speech API Not working In Studio-Play-Solo "Failed to load sound : InvalidUser"

I read that recently the Text To Voice API is being fixed to not execute from the client? So I assumed this bug was cause by that, so I made a wrapper to fire to the server using a module I use for text-to-voice handling. But it still doesn’t work in studio. and I’m given the warning Failed to Load sound asset: Invalid User and the Throttled by Client warning from the Text To Speech API. But when I run in online mode it works as intended. So this is a new bug related to Studio permissions for the realtime Text To Speech API.

4 Likes

Hi @Magus_ArtStudios,

Thanks for the report;
Would you happen to have an .rbxl file and some instructions that could help us to reproduce the problem exactly as you are seeing it?

Sincerely,
Doctor_Sonar

Sure, I have reproduced the issue in a blank baseplate with a script connecting to the Player Onchatted signal. It works as intended and it was working fine in studio but now the API just always returns InvalidUser when in studio but it works fine on a live game. I thought the issue was caused by the voicelines being generated on the client, so I converted it to a server side procedure, but it’s still outputting invalid user. and rate limited by the client even though it’s on the server.
RealTimeTextToSpeechDemo.rbxl (63.4 KB)

This happens in studio with just a AudioTextToSpeech instance. It always comes up with 2 warnings saying ‘Failed to load sound : Invalid User’ .


My experience where I use this is published, public, and rated, and not TeamCreate enabled. This example is none of those things but still has the same issue relating to the TextToSpeech api.

its been a while but did you find a solution for that? i got the same error

No, it has not been acknowledged. Still an ongoing issue, it works in an online game, but not in studio. No where does it say this is a thing, It was nice to have this feature in studio.

ive been trying to make tts for my game but i got this error on online or studio too it just works one per player

1 Like

That’s true as well I almost didn’t notice that. It only works once on a online game. This warning is different than a failed to generate audio due to moderation, or throttling. The example demo file recreates the issue for me. In the demo we are using a text filter, which works during online play only due to the official API restrictions, and the OnChatted signal is used to demonstrate the audio not working. I’m not using it for that in my project but it was the easiest way to utilize my TextToSpeech module and have a user friendly way to test the text to speech api.

I just experienced this and was confused.

Then figured out that Text-To-Speech only works in Studio if Team Create is enabled for that place.

1 Like

that’s interesting, but it doesn’t explain why in online it only works for 1 message then stops working entirely. How is this issue not addressed after 3-months is beyond me, i don’t know if this is a common problem but it has been an ongoing issue that has shut down the whole idea of using the audio text-to speech api. I still have the hooks for it but the text is just displaying.

I have solved the issue, it appears you have to create a new instance everytime you want to use the api. Then each one can be changed once, then it can either be cached or thrown away.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.