profile
viewpoint

Ask questionsVoice recording buggy

First of all thanks a lot for this awesome application!

Unfortunately I have some troubles with the voice recording. Not sure if I ever will use it :D but thought you might be interested.

This was my first bug: ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card [alsa @ 0x5626bffac2c0] cannot open audio device default (No such device) default: Input/output error

Fixed with adding that line to my conf.py VOICE_RECORD_CMD = "ffmpeg -f alsa -i hw:0 -c:a libopus -b:a 32k {file_path}"

But there is still another one:

Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, alsa, from 'hw:0': Duration: N/A, start: 1592929738.453123, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s [NULL @ 0x558585020e00] Unable to find a suitable output format for '/tmp/voice-2020-06-23' /tmp/voice-2020-06-23: Invalid argument

paul-nameless/tg

Answer questions lightme16

Hey @IvoLeist.

VOICE_RECORD_CMD = "ffmpeg -f alsa -i hw:0 -c:a libopus -b:a 32k {file_path}"

this command is also works good to me, we can consider using it as default one for Linux.

regarding you next problem, can you clarify plz how did you install app? Can you plz try to install it from source with:

git clone git@github.com:paul-nameless/tg.git
cd tg
PYTHONPATH=. python3 tg/main.py

and reproduce the error?

from you error code:

[NULL @ 0x558585020e00] Unable to find a suitable output format for '/tmp/voice-2020-06-23'
/tmp/voice-2020-06-23: Invalid argument

I can see that there problem in quoting output record name, I believe it could be fixed in the https://github.com/paul-nameless/tg/pull/83

useful!

Related questions

No questions were found.
Github User Rank List