Comments (15)
from tjbot.
i had some corruption and my rasp config was missing, so I installed it and removed tjbot, re-install and now getting this error when I execute sudo node stt.js
verbose: TJBot initializing LED
[rpi-ws281x-native] Could not verify raspberry-pi version. If this is wrong and you are running this on a raspberry-pi, please file a bug-report at https://github.com/beyondscreen/node-rpi-ws281x-native/issues
A non-functional stub of this modules interface will be returned.
verbose: TJBot initializing microphone
verbose: TJBot initializing speech_to_text service
info: Hello from TJBot! My name is Watson.
verbose: TJBot library version v1.2.1
I understand lots of colors. You can tell me to shine my light a different color by saying 'turn the light red' or 'change the light to green' or 'turn the light off'.
verbose: TJBot initializing microphone
pi@raspberrypi:~/Desktop/tjbot/recipes/speech_to_text $
Much appreciate your help
from tjbot.
What version of the raspberry Pi are you using? Pi2 or Pi3?
The error message suggests there was a problem initializing the LED ...
Does the app "end" like previously or you are able to see speech transcripts when you speak to it?
-V.
from tjbot.
Pi3
from tjbot.
pi@raspberrypi:/Desktop/tjbot/recipes/speech_to_text $ sudo node stt.jsverbose: TJBot initializing LED/Desktop/tjbot/recipes/speech_to_text $
[rpi-ws281x-native] Could not verify raspberry-pi version. If this is wrong and you are running this on a raspberry-pi, please file a bug-report at https://github.com/beyondscreen/node-rpi-ws281x-native/issues
A non-functional stub of this modules interface will be returned.
verbose: TJBot initializing microphone
verbose: TJBot initializing speech_to_text service
info: Hello from TJBot! My name is Watson.
verbose: TJBot library version v1.2.1
I understand lots of colors. You can tell me to shine my light a different color by saying 'turn the light red' or 'change the light to green' or 'turn the light off'.
verbose: TJBot initializing microphone
pi@raspberrypi:
from tjbot.
pi@raspberrypi:/Desktop/tjbot/recipes/speech_to_text $ sudo node stt.jsverbose: TJBot initializing LED/Desktop/tjbot/recipes/speech_to_text $
[rpi-ws281x-native] Could not verify raspberry-pi version. If this is wrong and you are running this on a raspberry-pi, please file a bug-report at https://github.com/beyondscreen/node-rpi-ws281x-native/issues
A non-functional stub of this modules interface will be returned.
verbose: TJBot initializing microphone
verbose: TJBot initializing speech_to_text service
info: Hello from TJBot! My name is Watson.
verbose: TJBot library version v1.2.1
I understand lots of colors. You can tell me to shine my light a different color by saying 'turn the light red' or 'change the light to green' or 'turn the light off'.
verbose: TJBot initializing microphone
pi@raspberrypi:
from tjbot.
i'm not sure why the copy and paste is putting a strikethrough sorry about that
from tjbot.
Can you paste the results of the following?
aplay -l
lsusb
from tjbot.
aplay -l
**** List of PLAYBACK Hardware Devices ****
ALSA lib conf.c:4717:(snd_config_expand) Load defaults error: File exists
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:277: control open (0): File exists
ALSA lib conf.c:4717:(snd_config_expand) Load defaults error: File exists
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL hw:1
aplay: device_list:277: control open (1): File exists
us 001 Device 006: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
Bus 001 Device 005: ID 1c4f:0026 SiGma Micro Keyboard
Bus 001 Device 004: ID 04f3:0235 Elan Microelectronics Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
from tjbot.
Lets run some test to ensure you are able to record audio using your microphone (btw .. what type of mic are you using?)
arecord -D plughw:0,0 test.wav
This should record audio to test.wav and you should be able to play it aplay test.wav
.
Does this run correctly on your setup?
from tjbot.
Mini Micohone USB microphone model MI-305
Received an error: pi@raspberrypi:~ $ arecord -D plughw:0,0 test.wav
ALSA lib conf.c:4717:(snd_config_expand) Load defaults error: File exists
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM plughw:0,0
arecord: main:722: audio open error: File exists
from tjbot.
Hi @victordibia and @kcookboyd. I'm being hit by this error as well. I sent you a slack message Victor, if possible, please help me out, as I've got an event in a few days, and I need the code ready :) Thanks!
from tjbot.
I've been able to fix the problem! I changed the microphoneDeviceId
from plughw:1,0
to default
.
Is this an issue only I'm experiencing, or is this something I should submit a pull request for? Since @kcookboyd and I have faced this issue, I think this is something that should be mentioned in the readme at least.
from tjbot.
HI @tanmayb123
On various Pi setups, the microphone/speaker id might be different hence the need to change the deviceID
variable. On most Pi's its plughw:1,0
.
You are right, we should get an issue like this better documented.
Glad you were able to resolve this, thanks for the feedback!
Best with your event!
Victor.
from tjbot.
Hey Guys. I have the same problem with the same USB Microphone. I am a complete noob, so how do I change the plughw to default?
from tjbot.
Related Issues (20)
- Verify that hardware tests and recipes work with RP4 HOT 1
- Find a new replacement for the Anker Mini Bluetooth Speaker, which has been discontinued HOT 2
- Write down the instructions for how to push out a new TJBot release
- Migrate instructions content to the GitHub wiki HOT 11
- Get started with Discussions
- Design new recipe that uses watsonx.ai to have TJBot tell a story
- Rename `conversation` recipe to `conversation-assistant` HOT 4
- Add new recipe for `conversation-watsonx` HOT 1
- Tag recipes based on which RPi hardware they support
- Update bootstrap with latest instructions for installing node.js on RPi
- Update `conversation_assistant` recipe to import ibm-cloud and use the assistant API directly HOT 2
- Figure out how to make `conversation_watsonx` work in javascript HOT 1
- Remove or rework `translator` recipe HOT 1
- Remove or rework `sentiment-analysis` recipe HOT 1
- Add python equivalents for existing recipes?
- Add temperature sensor support to speech_to_text
- Add temperature support to conversation_assistant
- Verify TJBot build, hardware tests, & recipes on RPi 5
- Clean out outdated recipes HOT 3
- Move API into Speech to Text recipe HOT 3
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 tjbot.