-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio IN to USB "in" ? #24
Comments
Hi @rhaamo . Thanks for your question. To check, you are trying to take the audio being fed into DSPham, and direct it back out over USB to the computer, yes? The code you posted looks OK to me. It should route the audio coming into the DSPham USB back out over the DSPham USB back to the computer. I should ask, how are you monitoring the audio on the computer end? This may be a silly question, but I think it is the first logical step. I don't know which operating system you are using, but I think you will need to open a system audio config dialog or an application and choose the Teensy Audio in device or make an 'audio pipe' in order to hear it? I also presume you have a working DSPham hardware, and it boots and works normally? And you are feeding some audio into the DSPham to process? The DSPham itself make no noise without an input 😄 Maybe a fist step is to check you can hear sound coming out over the Teensy USB. There is an example for instance here on the teensy forum where a sine wave is fed directly out over USB - that would ensure the hardware and computer are set up OK to start with? Then, if you want to monitor the audio into the DSPham, you might be better taking the feed from the AudioOutputUSB usb2;
...
AudioConnection patchCord15(input_mixer, 0, usb2, 0);
AudioConnection patchCord16(input_mixer, 0, usb2, 1); Or, the more obvious to me, is to feed the processed audio back over USB, like: AudioOutputUSB usb2;
...
AudioConnection patchCord15(peak_amp, 0, usb2, 0);
AudioConnection patchCord16(peak_amp, 0, usb2, 1); but it sounds like you tried that already. I hope that helps? If you cannot get it to work, let me know, and I will see if I have time to test the code here. I do think having USB output on DSPham would be useful, as DSPham could then be used as an 'outboard USB DSP processor', without the need for a line in/out or headphones... |
Hello! First yes I have a working DSPham, how it is wired is basically as an external loudspeaker with extras: 4 inputs mono selector to DSPham to an amplifier to a speaker/headphones. The input of the DSPham is the headphones out of a xiegu g90, that part works, I can use the filters properly. As the teensy usb/audio part, if I choose the Teensy as audio out on the computer, I can hear music through the teensy and speaker. What I am interested in is doing:
I think I did try And for how I monitor the audio on the computer, it was with fldigi (I wanted to decode some digimodes). |
Hello rhaamo and graham. I have change my code in order to get audio out from the teensy, it means if i want the audio comes from the radio On my PC, if i chose the audio output as the teensy, than all the audio from my PC will go to USB and will come out Sometimes i use this to clean the audio from some websdr that i use all over the world, and i have success getting Don´t remember if i have to install some drivers win10, but teensy is detected as an USB audio IN/OUT. Line 37
on line 79
AudioConnection patchCord9(input_mixer, 0, input_peak_detector, 0); These are the mods i have done, you can try it and report if it works for you. Regards. |
Hi @Roturbo , thanks for the response and confirmation. It's good to know it can work. Your code changes look functionally very similar to those of @rhaamo . @rhaamo - I suspect your code was OK, and you have an audio/driver routing issue at your computer end - I'd start to look there most likely. A note for @Roturbo - in your code I think you have an extra redundant line. This line:
is trying to route the Also, a note. Your audio is probably only coming out of one channel on the USB, as you have only wired up to the
to connect up the other USB channel. Up to you though :-) |
Hi @grahamwhaley , it is like you say,, the redundant i think i forget to remove, O was trying to record the audio and notice that one channel was empty,, it was mono,, so i add the code Tanks for your help. Regards. |
Hi @rhaamo - just wondering if you ever got this to work? If so, shall we close this Issue? :-) |
I am trying to get the audio incoming into the DSP to be routed in the "in/mic" of the USB, but I think I am missing something.
I have tried adding:
Also with
Q_in_L
orpeak_amp
instead ofusb1
but nothing.What can I be missing here ?
The text was updated successfully, but these errors were encountered: