So, you are saying that your usb sound card does not appear in pavucontrol? If that is the case, is the box in the lower right corner set to show “all devices” or “all input devices”?Yes, I am.
Have you tried a different usb sound card?
So, you are saying that your usb sound card does not appear in pavucontrol? If that is the case, is the box in the lower right corner set to show “all devices” or “all input devices”?Yes, I am.


I did the above mentioned steps and it now seems to be recognizing my audio from the soundcard. Issue #1 seems to be fixed! Now to only get the program to successfully start upon booting the raspberry pi...
Thanks you for your help!
Yes, autostart on a pi running Buster GUI has proven to be challenging. Have a read of this post and see if you can adjust the commands to start TTD.
![]()
Why does Darkice hate me?
Let me start this off with I am basically illiterate with Linux, I am running a stream thru a Rasberry Pi 3+, using Rasperian as the OS and darkice as the streaming software. Recently the stream has been dropping, when I check the computer it shows Darkice having/had a Buffer Overrun. I've had...forums.radioreference.com
Let me know how it goes and if you need help with parts of it. This runs ttd in a detached screen. It is likely that your pi2 used a similar arrangement.
Sorry for confusing things, let's start over with these changes:
(I assume that you successfully installed screen.)
Edit the LXDE autostart file: sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
At the end, add: @sh /home/pi/TTDcheck.sh
Here is what it should end up looking like:
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@sh /home/pi/TTDcheck.sh
Cntrl-X and save
Attached is a file called TTDcheck.txt. Copy that file to your /home/pi directory and rename it to TTDcheck.sh
Attached is a file called startTTD.txt. Copy that file to your /home/pi directory and rename it to startTTD.sh
Make both scripts executable: sudo chmod +x /home/pi/TTDcheck.sh
sudo chmod +x /home/pi/startTTD.sh
Reboot your pi.
To check and see that darkice is running type screen -list at the command prompt.
These assume that you are running the program from the /home/pi/TTD directory and that the command to start the program is ./TwoToneDetect. If these assumptions are not correct, you will need to adjust the paths in the two file appropriately.
I hope this clears things up.
Jim
[/QUOTE
I did the above steps. After opening up a terminal window after rebooting, I saw the following text: "Running at boot python: can't open file '/home/pi/TTD/TwoToneDetect71d.py': [Errno 2] No such file or directory"
I then checked to see if darkice is running by typing "screen -list" and received the response "No Sockets found in /run/screen/S-pi."
Everything is correct with my directly, "home/pi/TTD/TwoToneDetect71d" and I'm not sure why the terminal window indicates no such file or directly as listed above.
Done recording Fire 13:02:40 on 01/30/20
376.463414634 2411 1580410960.11
./audio/Fire_2020_01_30_13_02_16.wav
done writing WAV Fire 13:02:40 on 01/30/20
354.951219512 32420 1580410960.39
247.390243902 18640 1580410960.68
done converting to MP3 Fire 13:02:41 on 01/30/20
done converting to AMR Fire 13:02:41 on 01/30/20
0
entry
['Fire', 1580410936.491545]
setting mail server up
set up mail server
starting TLS
done starting TLS
logging in
logged in
MP3 Group Email sent to "email" via smtp.gmail.com on port 587 using STARTTLS Fire Page Received at 13:02:16 on 01/30/20 13:02:44 on 01/30/20
Traceback (most recent call last):
File "/home/pi/TTD/TwoToneDetect71d.py", line 1300, in mail
IOError: [Errno 2] No such file or directory: './audio/Fire_2020_01_30_13_02_16.amr'
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 1 trying again in five seconds for Fire Page Received at 13:02:16 on 01/30/20
Yeah it appears that the latest version of Buster uses a build of ffmpeg that doesn't include AMR support. You can build ffmpeg from source yourself with AMR and MP3 support as follows:I'm running TwoToneDetect71d on a Raspberry Pi 3 with Raspian Buster. Audio gets converted to mp3 just fine but not amr. There is no error message in the log file for converting it to amr.
I installed libavcodec-extra58.
Code:Done recording Fire 13:02:40 on 01/30/20 376.463414634 2411 1580410960.11 ./audio/Fire_2020_01_30_13_02_16.wav done writing WAV Fire 13:02:40 on 01/30/20 354.951219512 32420 1580410960.39 247.390243902 18640 1580410960.68 done converting to MP3 Fire 13:02:41 on 01/30/20 done converting to AMR Fire 13:02:41 on 01/30/20 0 entry ['Fire', 1580410936.491545] setting mail server up set up mail server starting TLS done starting TLS logging in logged in MP3 Group Email sent to "email" via smtp.gmail.com on port 587 using STARTTLS Fire Page Received at 13:02:16 on 01/30/20 13:02:44 on 01/30/20 Traceback (most recent call last): File "/home/pi/TTD/TwoToneDetect71d.py", line 1300, in mail IOError: [Errno 2] No such file or directory: './audio/Fire_2020_01_30_13_02_16.amr' Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 1 trying again in five seconds for Fire Page Received at 13:02:16 on 01/30/20
cd ~
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg;
sudo apt-get install libopencore-amrnb-dev
sudo apt-get install libmp3lame-dev
sudo apt-get install libfdk-aac-dev
./configure --pkg-config-flags=--static --bindir=/home/pi/bin --enable-gpl --enable-libass --enable-nonfree --enable-libmp3lame --enable-libopencore-amrnb --enable-version3 --enable-libfdk-aac
make
sudo make install
Yeah it appears that the latest version of Buster uses a build of ffmpeg that doesn't include AMR support. You can build ffmpeg from source yourself with AMR and MP3 support as follows:
Code:cd ~ git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg cd ffmpeg; sudo apt-get install libopencore-amrnb-dev sudo apt-get install libmp3lame-dev sudo apt-get install libfdk-aac-dev ./configure --pkg-config-flags=--static --bindir=/home/pi/bin --enable-gpl --enable-libass --enable-nonfree --enable-libmp3lame --enable-libopencore-amrnb --enable-version3 --enable-libfdk-aac make sudo make install
Andy
Uh, not sure. Try sudo apt-get install libfaac-dev and then retry from ./configure on down and see what happens?Thanks Andy!
I'm getting a 'Unable to locate package libfaac-dev' error. Do I need to build it as well?
I must say, Raspian Buster has been nothing but a pain for me compared to Stretch.