Comments (6)
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.
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.
Audio stream is getting stopped may be because microphone is not properly attached?
from sonus.
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.
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.
@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)
- word spacing on some languages is not correct
- Snowboy shutdown HOT 9
- occasional loss of cloud connection, hotword reco still works..
- support windows HOT 8
- Bug report: Could not start server after npm install HOT 1
- [Question] How to speed up sonus? HOT 5
- Watson STT support? HOT 3
- Raspbian - Install fail HOT 1
- node sonus.js HOT 5
- Wrong description: 'speechContext' --> 'speechContexts' HOT 1
- Usage purely offline HOT 1
- Can you pipe audio data to this (with node.js) HOT 3
- App crashes when trying to access .pmdl file inside electron app. HOT 11
- (node:6174) DeprecationWarning: grpc.load: HOT 10
- Crashes when built inside electron app HOT 1
- sonus error HOT 1
- Hangs on partial result listener HOT 2
- Sonus.pause(sonus) and Sonus.resume(sonus) HOT 12
- snowboy 1.3.0 on some HW-systems does not work, but 1.2.0 does HOT 6
- Uncaught Error for something really not sure about HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonus.