Skip to content

Text-To-Speech #386

Open
Open
@decentralgabe

Description

Continuing what I was working on in #280.

I have read when you (Evan) have written about TTS in #78, and agree that having a speech response to most commands would be useless; however, when asking "what time is it?" I think it would be a nice feature if the mirror spoke the time at the user, though the "what time is it" feature should be fixed to display the time on the mirror too if any other services are open. There are other cases too where TTS could be useful down the line – speaking results from the Wolfram Alpha API, announcing sports scores, timed reminders and so on.

I had been looking into the SpeechSynthesis API; however, it appears that Google has dropped support for the API within embedded/dev Chromium environments as of the other month. The problem isn't with the SpeechSynthesis commands itself (they are available within the mirror), but there are no voices available for the API to work with (evident by a call to speechSynthesis.getVoices()). Here's a demo of the API in action using Angular.

I had looked into a few other user's projects that make use of the Speech API (they too do not work in the mirror), including Artyom, and Speech-Synthesis.

What I will attempt next is to work with a few of the Linux-specific TTS solutions outlined here.

Edit: Might be worth noting that SpeechSynthesisUtterances work when I run the mirror code on my Mac, but does not work on the RPi.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions