Code Monkey home page Code Monkey logo

Comments (15)

victordibia avatar victordibia commented on May 18, 2024

from tjbot.

kcookboyd avatar kcookboyd commented on May 18, 2024

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.

victordibia avatar victordibia commented on May 18, 2024

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.

kcookboyd avatar kcookboyd commented on May 18, 2024

Pi3

from tjbot.

kcookboyd avatar kcookboyd commented on May 18, 2024

pi@raspberrypi:/Desktop/tjbot/recipes/speech_to_text $ sudo node stt.jsverbose: 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 $

from tjbot.

kcookboyd avatar kcookboyd commented on May 18, 2024

pi@raspberrypi:/Desktop/tjbot/recipes/speech_to_text $ sudo node stt.jsverbose: 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 $

from tjbot.

kcookboyd avatar kcookboyd commented on May 18, 2024

i'm not sure why the copy and paste is putting a strikethrough sorry about that

from tjbot.

victordibia avatar victordibia commented on May 18, 2024

Can you paste the results of the following?
aplay -l
lsusb

from tjbot.

kcookboyd avatar kcookboyd commented on May 18, 2024

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.

victordibia avatar victordibia commented on May 18, 2024

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.

kcookboyd avatar kcookboyd commented on May 18, 2024

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.

tanmayb123 avatar tanmayb123 commented on May 18, 2024

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.

tanmayb123 avatar tanmayb123 commented on May 18, 2024

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.

victordibia avatar victordibia commented on May 18, 2024

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.

daleron01 avatar daleron01 commented on May 18, 2024

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)

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.