How to make multiplayer character say out loud the user input?

Is there a way to program a multiplayer character say out loud user input (a sentence for example) and attach it to the user’s character? How do you do it?

The exact solution will depend on your specific requirements. But here are a few to give you an idea:

  • You can have sound files to each user input and play the associated sound file for the input received. This is useful when you have a small set of fixed inputs.
  • Integrate a Text to Speech service like IBM Watson Text to Speech. The Unity SDK for Watson Developer Cloud Unity SDKServices is available on Github. This is useful when there is no fixed set of inputs or the input set is too large to create sound files for each. This will however require to have internet connectivity and will have latency between receiving input and producing the sound.
  • Or a combination of these two methods above. Where you can have pre-defined set of inputs with their associated sound files and can get sound for variable inputs as they are received.

If you can provide details of your specific requirements we might be able to suggest a proper solution.