-
Notifications
You must be signed in to change notification settings - Fork 79
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 #47
Comments
like Amazon polly |
I'd considered baking it into the library #25 but it's so simple to add on I'm not sure it's worth it. Super simple sudocode example of how could do this: sonus.on('final-result', result => {
intent.process(result, => (response, prompt) {
say.speek(response)
if(prompt) {
sonus.trigger(sonus, 0, 'some hotword')
}
}
}) |
what is this intent process and prompt.I need to implement session using hotword so as long as session is open i don't want hotrod to be associated with statement in session |
It's just sudocode. You'd replace that with whatever actual intent processor you have. If you say the hotword while cloud recognition is in progress is will not begin another recognition. |
Ok I am trying to trigger the hotrod once all the response is flushed out to the speaker if prompt is required from the user. Player.on('flush' , function(){console.log("In flush block");
Is this oK Also wanted to know if I can use hotword only during the start of the conversation and not in all subsequent interactions until i say stop |
How to make sure when speaker has played out the response and then trigger hotword manually |
Sonus.pause and resume are not working it is still picking what is said after user utterance After triggering hotword manually I am getting what was said in speaker. it seems it keeps on listening after sonus.pause Sinus.Pause is not stoping mic to stop listening Please let me know how to access Audio buffer from microphone |
Are you use you are using const sonus = Sonus.init({ hotwords }, speech)
sonus.pause() // does nothing
Sonus.pause(sonus) // should work |
I am doing following thing: sonus.on('final-result', result => { bufferStream.pipe(Player)
and then in some function down the line I am executing Sonus.resume(sonus) after that calling manual trigger of hotword There is no possibility of capturing pauseOnComplete and resumeOnComplete events while pausing and resuming mic? I need on functionality where mic listens nothing till I emit hotword manually which seems to be not the case as it is going into endless loop of recognising things which are played out by speaker |
Still doesn't work even after that change I made |
I'll be online after work today and will have time to take a look at this and give you a hand. There's an unofficial Discord channel: https://discord.gg/35zesAR I should be on at ~7:30 PST |
So it is 7:30 am or pm |
I have joined the channel .. Are u available on the channel |
How to configure for multiple languages(Google Speech API) in sonus |
@sharmmoh1983 please open separate issues for new questions. Right now there is no support for multiple simultaneous languages: I'm closing this issue because it has been resolved. |
Are you planning to use any text to speech conversion
The text was updated successfully, but these errors were encountered: