DragonflyRobotics / DragonflyRobotics/MAGIST-Algorithm

Microphone Transcriber Suddenly Hangs and Doesn't Output Anything.

Open
#16 0 comments 0 reactions 1 assignee Claimed by @DragonflyRobotics View on GitHub
bug
Dominant language
Python
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

**Description**
Occasionally, the Microphone Transcriber freezes after printing:
```
GoogleAudioTranscriber Listening...
```

I am not really sure what causes it or what can be done.

**To Reproduce**
Not sure when and where it happens. My theory is that some process doesn't close correctly and occupies the microphone.

**Expected behavior**
Ideally, it should finish transcribing or provide a microphone-occupied error.

**Screenshots**
There isn't much to show but I do get these ALSA errors:
```
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.