Pocketsphinx Failed to calibrate voice activity detection - raspberry-pi

I have a problem with pocketsphinx, i have this error:
Error opening audio device default for capture: No such file or directory.
And when I start the command arecord i have this error arecord:
main 682 erreur à l'ouverture audio: Aucun fichier ou dossier de ce type
Can do you help me ? Please
UPDATE:
Now i have changed the asound.conf with this:
pcm.usb-audio {
type hw
card 0
device 0
}
ctl.usb-audio {
type hw
card 0
device 0
}
I have this error:
Warning: Could not find Mic element FATAL_ERROR: "continuous.c", line 254: Failed to calibrate voice activity detection

This error means you are using very old version pocketsphinx-0.8 which indeed had this bug. It is recommended to compile latest version pocketsphinx-5prealpha, it will work reliably.

Related

How can fixed this error in moodle update?

HelloW!
When I went to upgrade moodle 3.10 to 3.11 and later 4.x.
I got a problem, after installing all the plugins that weren't on disk, and others that weren't found.
When proceeding, I had this image error.
Error Image Print
I use moodle in PT-BR, this is an error log:
Atualizando para nova versão
Importação de idioma: pt_br_old
Impossível achar componente
Outras informações sobre este erro
Informações de depuração: pt_br_old
Error code: cannotfindcomponent×Ignorar essa notificação
Rastreamento de pilha:
line 810 of /lib/componentlib.class.php: lang_installer_exception thrown
line 665 of /lib/componentlib.class.php: call to lang_installer->install_language_pack()
line 45 of /admin/tool/langimport/lib.php: call to lang_installer->run()
line 1741 of /lib/upgradelib.php: call to tool_langimport_preupgrade_update()
line 1856 of /lib/upgradelib.php: call to upgrade_language_pack()
line 519 of /admin/index.php: call to upgrade_core()
log in english:
Updating to new version
Language import: pt_br_old
Impossible to find component
Other information about this error
Debug info: pt_br_old
Error code: cannotfindcomponent×Ignore this notification
Stack tracking:
line 810 of /lib/componentlib.class.php: lang_installer_exception thrown
line 665 of /lib/componentlib.class.php: call to lang_installer->install_language_pack()
line 45 of /admin/tool/langimport/lib.php: call to lang_installer->run()
line 1741 of /lib/upgradelib.php: call to tool_langimport_preupgrade_update()
line 1856 of /lib/upgradelib.php: call to upgrade_language_pack()
line 519 of /admin/index.php: call to upgrade_core()
I installed all the missing plugins on the disk given in the update.
I downloaded and installed the PT-BR Moodle 3.11 language pack in the lang folder and also cleared the cache of the folders inside moodledata in my case it has another name. But i don't delete lang folder in moodledata and exist content in this folder.
path moodledata: /var/AnotherName
I updated the system, ubuntu, entered the permissions in the folder again and nothing worked until now.
I kept the config.php from the old moodle as recommended. The only warning I got in the update was about input_vars below 5000, and about the database not being in exact moodle format. But it was just warnings.

Booting xv6 with qemu

I am trying to boot xv6 with qemu but whenever I run make qemu , I am getting the following error
usertests.c: In function ‘sbrktest’:
usertests.c:1461:13: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
1461 | *lastaddr = 99;
| ~~~~~~~~~~^~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: usertests.o] Error 1
Running make qemu-nox resulted in same error.I am using Kubuntu 21.10 operating system.here is a way around but I am looking for a solution if anyone finds out.
Maybe it would help:
Delete "_usertests" & "usertests.c" from makefile and try make clean - > make -> make qemu
I fix this problem just now, don't use the higher version ubuntu. I make qemu-nox success in 18.04 ubuntu operation system.

Error coming while building c code in full system mode of gem5

i am using gem5 simulator in full system mode and getting error as Aborted(core dumped).
i am using command as : " build/ARM/gem5.opt configs/example/fs.py --disk-image=/home/coep/full_system_images/disks/arm-ubuntu-natty-headless.img --kernel=/home/coep/gem5/full_systems_images/binaries"

rtwintgt install

I type in Matlab command window rtwintgt -install and get the following error:
??? Undefined function or variable 'twintgt'. [sic]
» rtwintgt -install
You are going to install the Real-Time Windows Target kernel.
Do you want to proceed? [y] : y
??? Failed to copy the kernel to Windows system directory.
Access is denied.
Error in ==> C:\MATLABR11\toolbox\rtw\windows\private\rtwtinst.dll
Error in ==> C:\MATLABR11\toolbox\rtw\windows\rtwintgt.m (rtwt_setup)
On line 74 ==> reboot = rtwtinst('install', srcpath);
Error in ==> C:\MATLABR11\toolbox\rtw\windows\rtwintgt.m
On line 24 ==> rtwt_setup
What should I do? And is it important to install this file?
My problem is when I call a matlab function from a file in my code using (#myfunction),
I get error?
As suggested in the comments, check if you have admin rights on your machine as well as if your license includes the Real-Time Windows Target.

Simple Device Driver Issue : cat: /dev/chardev: No such device or address

I am trying to learn Device Drivers and tried to compile a code, but I get the below error messages. I would appreciate if you give me pointers to resolve this issue
cat: /dev/chardev: No such device or address
Below are the logs:
#ubuntu:~/Desktop/C_code$ lsmod
Module Size Used by
chardev 12767 0
#ubuntu:~/Desktop/C_code$ ls -l /dev
crw-rw-rw- 1 root root 77, 0 2011-10-03 20:47 chardev
~/Desktop/C_code$ uname -r
2.6.38-8-generic
I am using the code from the following site "http://tldp.org/LDP/lkmpg/2.6/html/x569.html"
Try: cat ~/Desktop/C_code/dev/chardev. That file isn't necessarily in /dev yet, but you could copy it there.
the problem is basically that the major and minor number represented by the device node /dev/chardev don't represent a device. put in your source code a printk of the major and minor number just after the'ye assignment.
check if the numbers in the kernel log match 77 0 as the device node declare.
if not, delete the device node, and write the following command
sudo mknod /dev/chardev c <MAJOR> <MINOR>
of course the major and minor are the ones you printed to the kernel log.
good luck.
http://tldp.org/LDP/lkmpg/2.6/html/x569.html, here
chardev is created in current working directory.So you should cat chardev in your current directory not in /dev/. Or create chardev in /dev/ directory instead.