Customizing Default Voice and Language
It’s best to first set the default voice, and then start to create all the voices in your Flow, so that you don’t have to re-generate them. Here’s how you can select the default voice that will be used by all voice clips.
- Go to Project Settings → PaleBlue → TextToSpeech
- Select a voice from the Voice name dropdown
- Voices are called like en-GB-Wavenet-C, with the following:
- en: language
- GB: dialect
- Wavenet: algorithm
- C: specific voice (can be male or female)
Voice Advanced Features
If you want to use advanced voice functionality with customizeable subtitles and voices, here’s how.
- First, you need to create a Voice clip in your project files
- In Unity menu, select Assets → Create → PaleBlue → Voice Clip
- Alternatively, right click a project folder where you want to create a clip, and select Create → PaleBlue → Voice Clip
- The clip will be created and opened in the Inspector
- See all the things you can customize here - and that’s per voice clip! So you can have characters talking in different voices if you wanted.
- Change the Voice Clip Name to easily find it later, for example to Clip Test
- Now, type in the text you want to speak out into Text field, and click Generate button
- You clip is ready for usage in Flow
- Open Flow.
- Right click in Flow to Add node, then select PaleBlue → Play Voiceline
- A new Play Voiceline node is created and its properties are opened
- Using the Clip selector, select the Clip you’ve created just now
- Connect the Play Voiceline node to other nodes in your flow
- Note that this node has two exit ports.
- Out is executed immediately after voice playback starts
- Done waits first for the voice to fully play, and executes only then
- That’s it. You can run your flow, and the voice will be played when this Play Voiceline node is reached.
Customize Voice per Clip
Note that in case for some clips you’d like to use a Voice different from the default one, you can make an exception by ticking Can override settings in Clip inspector, and selecting desired Voice for that Clip.