Configuring speech output

A configuration wizard is available for the configuration of the speech output (TTS). This guides you through the TTS configuration

1. To open the TTS Configuration Wizard, right-click the TwinCAT Speech configuration in the Solution Explorer.
Configuring speech output 1:
2. In the context menu, select Start TTS Wizard
The TTS Configuration Wizard opens.
In the lower section you will see a list of all already configured playback devices, which is empty in the case of a new project. A selected playback device is listed in the upper section.
In the first part, the wizard guides you through the configuration of the playback device of a sound card.
Configuring speech output 2:
3. To add a new playback device, click the + button.
The Device Wizard opens.
Configuring speech output 3:
4. In the Select Device drop-down list, select the appropriate playback device.
If you select the "Default Windows Output Device" here, the default sound card set in the operating system will always be used.
5. Click the Save button.
The Device Wizard closes.
6. If necessary, mark the desired playback device and click the Select button.
The playback device is added to the list in the upper section Selected Playback Device for TTS Configuration.
Configuring speech output 4:
7. Click on Next.
Configuring speech output 5:
The second part of the configuration opens, where you configure the actual speech generation service (Text-To-Speech).
As in the first step, a list of services that have already been configured is shown below. The selected service is displayed above.
8. To add a speech service, click the + button.
The TTS Service Wizard opens.
Configuring speech output 6:
9. Select the desired provider from the drop-down list TTS Synthesis Service.
For Amazon Polly, the access key is then queried, which is stored in the solution and also on the target system.
Configuring speech output 7:
10. You can give the speech recognition service its own name in the TTS Service Name input field.
11. Now set a language and voice for the speech output.
Configuring speech output 8:
12. You can use the Magic Wand Configuring speech output 9: button to automatically generate the available languages and voices.
13. Alternatively, select the desired language in the first drop-down list Select Language and an available voice in the second drop-down list Select Voice.
14. Click the + button.
15. In the third drop-down list Default Language, select a default language.
If you cannot select the desired language, install it on Windows SAPI. See
16. Click the Save button.
17. If speech recognition services have already been created, mark the desired speech recognition service in the list and click the Select button.
Configuring speech output 10:
18. Click the Next button to save the TTS configuration.
19. To save and stop the configuration at this point, click the Finish button.
When you click the Next button, the third part of the configuration opens. In the optional third part of the configuration, the wizard concludes by guiding you through the local saving of the generated TTS outputs on the target system. This allows you to reuse them at any time.
Configuring speech output 11:
20. To determine whether the TTS outputs should be saved, click the + button.
The TTS Storage Wizard opens.
Configuring speech output 12:
21. In the Storage Name input box, enter a name for the file to be saved.
22. In the Folder Path box, determine a memory location for the file to be saved.
23. In the Memory Usage area, you determine whether all TTS outputs are stored or whether the memory space should be limited. Select the appropriate radio button for this.
24. In the Max. Size input box, enter how much memory space should be allocated for the saved speech outputs.
25. Click the Save button.
26. If memory locations have already been created, mark the desired memory location in the list and click the Select button.
Configuring speech output 13:
27. Click the Finish button.
At the end of the configuration, TwinCAT Speech creates an identification number for it. This can be found in the list of TTS configurations under Configuration Id and you need it for the PLC programming of the TwinCAT Speech project.
Configuring speech output 14:
28. Activate the TwinCAT Speech configuration on the target system by clicking the Activate Configuration Configuring speech output 15: button.
Configuring speech output 16:
The TwinCAT Speech configuration is activated on the target system and can be used by the PLC.