View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.2
- Last updated
- First released
- Unity version
- 2021.3.5 or later
- Package size
- 534 KB
- Files
- 103
- Favorites
- 12
- Views in the past week
- 7
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $4.99 on
Keywords
Text to Speech using Google Cloud
This package is designed to convert text to voice using Google Cloud.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 1
Text to Speech using Google Cloud video 1
About this asset
For the code to work, you need to enter the api key in the "TEXT_TO_SPEECH" prefab.
An example of usage can be found in GoogleTextToSpeech\Scenes\Example scene.
From the publisher's Asset Store listing.
Technical details
To convert text to an audio clip, use the method:
GetSpeechAudioFromGoogle(string textToConvert, VoiceScriptableObject voice, Action<AudioClip> audioClipReceived, Action<BadRequestData> errorReceived) from TextToSpeech class
string textToConvert - text to convert
VoiceScriptableObject voice - voice options
Action<AudioClip> audioClipReceived - executed in case of successful conversion
Action<BadRequestData> errorReceived - executed in case of an error
_______________________________________________________
You can find ready-made voice options in GoogleTextToSpeech\Voices.
Or you can create a new set of voice options using Create/GoogleTextToSpeech/Voice.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2021.3.5f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.