Skip to content

PartnerRobotChallengeVirtual/console-simple-tts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Text-to-Speech

This is a submodule software for the Partner Robot Challenge (Virtual Space) in the World Robot Competition.

The console application synthesize voice sounds of the given text using SAPI.
This project generates Interop.SpeechLib.dll for the application.

Prerequisites

How to Build

  1. Launch Visual Studio 2017.
  2. Open the ConsoleSimpleTTS.sln with Visual Studio.
  3. Click [Build]-[Build Solution].
  4. ConsoleSimpleTTS.exe and Interop.SpeechLib.dll are generated in a "ConsoleSimpleTTS\bin\Release" folder.

How to Execute

  1. Launch a command prompt.
  2. You can confirm Text-to-Speech by executing the following command.
> cd ConsoleSimpleTTS\bin\Release
> ConsoleSimpleTTS "I have a pen"
  1. You can also set options to the second argument.
    The 409 means English (United States).
> ConsoleSimpleTTS "I have a pen" "Language=409;Gender=Female"

Memo

If you want to include the DLL in the Unity editor, you also need to include CustomMarshalers.dll.
If don't import CustomMarshalers.dll, the executable file after build will be terminated abnormally.
https://forum.unity.com/threads/solved-speechlib-spvoiceclass-getvoices-does-crash-my-unity-executable.268011/
For example, CustomMarshalers.dll is located in:
C:\Program Files\Unity\Hub\Editor\2018.4.0f1\Editor\Data\Mono\lib\mono\2.0

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Submodule for Text-to-Speech

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages