A Unity C# wrapper for the Google Cloud Text-To-Speech API.
This should work on any reasonably modern Unity version. Built and tested in Unity 6.0.
- Open project settings
- Select
Package Manager
- Add the OpenUPM package registry:
- Name:
OpenUPM
- URL:
https://package.openupm.com
- Scope(s)
com.uralstech
- Name:
- Open the Unity Package Manager window (
Window
->Package Manager
) - Change the registry from
Unity
toMy Registries
- Add the
UCloud.TextToSpeech
package
- Open the Unity Package Manager window (
Window
->Package Manager
) - Select the
+
icon andAdd package from git URL...
- Paste the UPM branch URL and press enter:
https://github.com/Uralstech/UCloud.TextToSpeech.git#upm
- Check the instructions for
UCloud.Operations
andUtils.Singleton
to install the dependencies
- Clone or download the repository from the desired branch (master, preview/unstable)
- Drag the package folder
UCloud.TextToSpeech/UCloud.TextToSpeech/Packages/com.uralstech.ucloud.texttospeech
into your Unity project'sPackages
folder - Check the instructions for
UCloud.Operations
andUtils.Singleton
to install the dependencies
Do not use preview versions (i.e. versions that end with "-preview") for production use as they are unstable and untested.
-
operations
endpoint*-
cancel
method* -
delete
method*
-
-
projects.locations
endpoint-
synthesizeLongAudio
method -
projects.locations.operations
endpoint*-
get
method* -
list
method*
-
-
-
text
endpoint-
synthesize
method
-
-
voices
endpoint-
list
method
-
*Through package dependency UCloud.Operations.
See https://uralstech.github.io/UCloud.TextToSpeech/DocSource/QuickStart.html or APIReferenceManual.pdf
and Documentation.pdf
in the package documentation for the reference manual and tutorial.