Skip to content

decasteljau/waapi-text-to-speech

Repository files navigation

Text To Speech From Wwise

Overview

This samples demonstrates how to generate WAV files from a text-to-speech from Wwise directly.

Demonstrates:

Requirements

  1. Node.js - Use the LTS version
  2. git
  3. Windows operating system
  4. Windows Powershell (comes with Windows 10)

Setup

It works best with Visual Studio Code. Run the following commands.

Install dependencies:

npm install

Build Typescript:

npm run build

Execution

First, ensure WAAPI is enabled in Wwise:

  • menu Project/Preferences
  • Check Enable Wwise Authoring API
  • Click OK
  • Restart Wwise

Then, open a Wwise Project.

Adding this script as an external editor

In Wwise:

  1. Open menu: Project > User Preferences
  2. In the External Editors, click Add...
  3. Browse for the text-to-speech.cmd file in this directory
  4. Click OK

Executing

  1. Create a Sound Voice object
  2. Insert text in the Notes field
  3. Right-click the Sound Voice object, and use the external editor text-to-speech

How it works

The source code is located in index.ts.

This script is executed as an external editor in Wwise from the current selection. It will retrieve the selection from WAAPI and generate a WAV file for each selected Sound objects using Windows text to speech. The WAV files will be automatically imported in the project with WAAPI.

Refer to this blog article for more information.

About

Wwise text-to-speech integration using external editors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published