Hi,
I'm trying to build a simple DSP with the Raspberry Pi 3 using the stereo soundcard and could use some help.
Problem:
I have a function generator hooked up to the RCA-in and an oscilloscope connected to the RCA-out. The function generator is outputting a simple sine wave. However, I am not seeing anything on the scope. I've been fiddling with the settings in ALSA Mixer according to some of the threads on here, but so far no luck.
Additional Info:
1) I want to tie the output of the ADC to the input of the DAC so that I can later implement filters in between to filter out noise in real time.
2) I'm planning to eventually do this in python.
3) The goal is to keep latency as low as possible.
Any suggestions/tips would be greatly appreciated. Thanks in advance!
Real-Time Digital Signal Processing
Moderator: flatmax
Re: Real-Time Digital Signal Processing
What application are you using to pipe audio from input to output ? I use this and it works nicely:
>alsaloop -c 2 -r 48000 -C plughw:0 -P plughw:0
>alsaloop -c 2 -r 48000 -C plughw:0 -P plughw:0
Re: Real-Time Digital Signal Processing
I apologize for not getting back to you sooner.
I was using the wire example from the pyaudio site (https://people.csail.mit.edu/hubert/pya ... re-example) to do it:
I've just ran the command you posted, but still nothing. I just hope it isn't a hardware issue.
Do you know what the ALSA mixer settings should look like for this?
I was using the wire example from the pyaudio site (https://people.csail.mit.edu/hubert/pya ... re-example) to do it:
Code: Select all
"""
PyAudio Example: Make a wire between input and output (i.e., record a
few samples and play them back immediately).
"""
import pyaudio
CHUNK = 1024
WIDTH = 2
CHANNELS = 2
RATE = 44100
RECORD_SECONDS = 5
p = pyaudio.PyAudio()
stream = p.open(format=p.get_format_from_width(WIDTH),
channels=CHANNELS,
rate=RATE,
input=True,
output=True,
frames_per_buffer=CHUNK)
print("* recording")
for i in range(0, int(RATE / CHUNK * RECORD_SECONDS)):
data = stream.read(CHUNK)
stream.write(data, CHUNK)
print("* done")
stream.stop_stream()
stream.close()
p.terminate()
Do you know what the ALSA mixer settings should look like for this?
Re: Real-Time Digital Signal Processing
I've put up screenshots of alsamixer settings for the card in this thread: http://forum.audioinjector.net/viewtopic.php?f=5&t=3068
Who is online
Users browsing this forum: No registered users and 5 guests