Giter Club home page Giter Club logo

Comments (6)

evancohen avatar evancohen commented on June 1, 2024

If the audio stream stops then there's nothing to keep Sonus "alive". I'm guessing that's what going on.
Could you share your code from index.js so I can verify?

from sonus.

sharmmoh1983 avatar sharmmoh1983 commented on June 1, 2024

How to make sure audio stream does not stop? Because in some raspberry pi this is working and on some it is not

Can you revert as soon as possible as this is hampering our demo

Code:

const config = require('./config')
const translate = require('google-translate-api');
const controller = require('./controller')
const Sonus = require('sonus')
const speech = require('@google-cloud/speech')({
projectId: '2017',
keyFilename: '/home/pi/91efae41b5b4.json'
})
const SoundPlayer = require('soundplayer');

const hotwords = [{ file: 'resources/aime.pmdl', hotword: 'aime' }]
//const sonus = Sonus.init({ hotwords }, speech);
const sonus = Sonus.init({ hotwords }, speech);
Sonus.start(sonus)
console.log('Say "' + hotwords[0].hotword + '"...');
sonus.on('hotword', (index, keyword) => {
console.log("hotword triggered");

});

sonus.on('final-result', result => {
console.log("UserSpeech : ", result)

}

})

from sonus.

sharmmoh1983 avatar sharmmoh1983 commented on June 1, 2024

Audio stream is getting stopped may be because microphone is not properly attached?

from sonus.

evancohen avatar evancohen commented on June 1, 2024

Revert? You can manually install the old version if you'd like, but I don't understand how reverting would help.

Loos like you aren't including Google cloud speech:

const speech = require('')({
projectId: '2017',
keyFilename: '/home/pi/91efae41b5b4.json'
})

from sonus.

sharmmoh1983 avatar sharmmoh1983 commented on June 1, 2024

It got resolved . there was some issue wit microphone
Do you have any idea bout user recognition library that can be assorted with sonus
Like Voice Id python equivalent. Getting user details for speech by identifying their voice

from sonus.

evancohen avatar evancohen commented on June 1, 2024

@sharmmoh1983 I haven't looked at user recognition, but feel free to file a new issue. Going to close this out because I think it's a dupe of #51

from sonus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.