Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text-To-Speech Module #1

Closed
chidiewenike opened this issue Jul 26, 2020 · 4 comments · Fixed by #9
Closed

Text-To-Speech Module #1

chidiewenike opened this issue Jul 26, 2020 · 4 comments · Fixed by #9
Assignees
Labels

Comments

@chidiewenike
Copy link
Collaborator

chidiewenike commented Jul 26, 2020

Objective

Explore offline Text-To-Speech (TTS) libraries that will convert a string to audio.

Key Result

Create a function that will output raw audio bytes from a string input.

Details

The function will take, as input, a string which will be the output from Rasa. The string is then converted to raw audio bytes by an offline/local TTS library. When selecting the appropriate library, priorities are as follows:

  1. Memory
  2. Runtime
  3. Speaker Quality
  4. Customizability of sound properties
@gwholland3 gwholland3 self-assigned this Jul 26, 2020
@chidiewenike chidiewenike changed the title TTS Module Text-To-Speech Module Jul 26, 2020
@mfekadu
Copy link
Member

mfekadu commented Jul 27, 2020

useful comment in issue #2

#2 (comment)

@nguyenlienviet
Copy link

nguyenlienviet commented Aug 2, 2020

The pyttsx3 library is offline and doesn't seem to use much memory. However, it doesn't have a method to return audio bytes and only has a method to play the audio instead; would this work for our use case @chidiewenike ?. I'm not sure if it will work out of the box on the pi, but it's very easy to use so you can just try on your pi.

@gwholland3
Copy link
Contributor

It can also save the audio to a file, in mp3 format I believe. Would that help?

@chidiewenike
Copy link
Collaborator Author

Playing the audio within the function using the pyttsx3 module is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants