Hi @GinSeng ,
How can I change the volume with the voice?
if (notification === “VOLUME_UP”){
?¿?¿?¿?¿?
}
if (notification === “VOLUME_DOWN”){
?¿?¿?¿
}
Thanks.
Hi @GinSeng ,
How can I change the volume with the voice?
if (notification === “VOLUME_UP”){
?¿?¿?¿?¿?
}
if (notification === “VOLUME_DOWN”){
?¿?¿?¿
}
Thanks.
Hi,
I use the module voicecontrol.
How can I change the following to raise the volume?
if (notification === “VOLUME_UP”){
?¿?¿?¿?¿?
}
if (notification === “VOLUME_DOWN”){
?¿?¿?¿
}
Hi, I have a problem with the module. The microphone and speaker work well. I do not understand why this happens. The error log:
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Expression ‘paInvalidSampleRate’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2048
Expression ‘PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2719
Expression ‘PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2843
Traceback (most recent call last):
File “./modules/voicecontrol/snowboy/kws-multiple.py”, line 34, in
detector = snowboydecoder.HotwordDetector(models, sensitivity=sensitivity)
File “/home/pi/MagicMirror/modules/voicecontrol/snowboy/snowboydecoder.py”, line 115, in init
stream_callback=audio_callback)
File “/usr/lib/python2.7/dist-packages/pyaudio.py”, line 747, in open
stream = Stream(self, *args, **kwargs)
File “/usr/lib/python2.7/dist-packages/pyaudio.py”, line 442, in init
self._stream = pa.open(**arguments)
IOError: [Errno Invalid sample rate] -9997
connected