Issue with freeswitch mod_Port audio in raspberry pi 4 (debian buster) - raspberry-pi

I have loaded mod_portaudio in freeswich. But after that when pa rescan the device, i found no device in the device list. While the pi is connected to a bluetooth speaker and also a headset with a aux cable and those are working fine in the system.
Can anyone please help me to sort out this issue.
Thanks

I am also working on this and shortly believed to have solved it (see https://lists.freeswitch.org/pipermail/freeswitch-users/2020-August/133883.html and https://lists.freeswitch.org/pipermail/freeswitch-users/2020-August/133884.html), but it wasn't true:
I was testing with my headset and had successful "pa looptest" indicating both indev & outdev were working
Then, when I tested that in the context of my application for auto-answering incoming calls (I called with my mobile phone while putting it in front of a tv so that I can test if I would hear anything on my headset), I didn't notice that in that case the mic was not working because I had the headset on my ears and was hearing the tv (because of success of looptest, I was just assuming that the mic would also be working)
But when I finally got a Plantronics Calisto 620-M Bluetooth Speakerphone, even the looptest failed. At this moment, I tested more carefully my headset again, and there I found out that the mic was not working.
Because it seemed that something device-specific should be the reason for failure, I also tested with my bluetooth earphones; there the effect was equivalent to Calisto speakerphone.
I finally got a USB speakerphone and tried that one, but in that case "pa rescan" failed to find any devices.
With all four devices, always arecord and aplay were working perfectly, and the above issues appeared only with mod_portaudio.
I don't have any idea what the issue could be with the usb, but with the three bluetooth devices, I still believe that something device-specific should be causing the problems here, e.g. the sample rate. But, currently I am lacking time to further work on this...

Related

How to connect speakers for Android Things without HDMI

I have an android app that outputs sound normally on a phone. I also put it into an android device and can hear audio on tv through HDMI cable. I also have an android things app that moves a servo and can put audio on the tv, also working as expected.
What I can't do is get audio from the audio jack, which would be my preferred option since I want something without a display.
I have lots of logcat entries saying everything is normal and sound is not failing, but other than that I can't rule out if it's an OS capability that's turned off (there's no mention in release notes), something that needs to be tuned into config.txt, whether I need extra lines of code, or it is muted.
I'm assuming audio is not getting to the jack at all. I know that the Raspberry pi 3 b audio jack also carries video, and I've tried to tap into every combination of its pins without success, both using a cable splitter and putting cables on the pins of the connector directly on the board. I'm also assuming that one of the exposed pins under the board carries audio only. Though I'd be grateful if someone could clarify which has left / right channel, even if tested on Raspbian or other OSs.
As seen in following logs, audio focus is ok and SoundPool.play never return 0 (as showin in line that says RESULT === 8):
02-04 02:08:28.617 694-1722/com.example.androidthings.simplepio I/SoundEngine: Ask for focus
02-04 02:08:28.653 408-822/system_process I/MediaFocusControl: AudioFocus requestAudioFocus() from uid/pid 10025/694 clientId=android.media.AudioManager#f4664becom.example.androidthings.simplepio.audio.SoundEngine$1#c9ef91f req=3 flags=0x0
02-04 02:08:28.654 694-1722/com.example.androidthings.simplepio I/SoundEngine: Ask for focus and GOT it
02-04 02:08:28.655 694-1722/com.example.androidthings.simplepio W/SoundEngine: ********* RESULT === 8
02-04 02:08:28.656 408-420/system_process I/MediaFocusControl: AudioFocus abandonAudioFocus() from uid/pid 10025/694 clientId=android.media.AudioManager#f4664becom.example.androidthings.simplepio.audio.SoundEngine$1#c9ef91f
02-04 02:08:28.656 694-1722/com.example.androidthings.simplepio I/SoundEngine: release focus
As pointed in the Raspberry Pi overlay documentation
2) The onboard analogue audio output uses both PWM channel
So you can't use PWM to drive a servo and play sounds thru the onboard Audio simultaneously.
A few options are possible:
try the USB audio support announced in Developer Preview 2
file a feature request to add support for I2S in the Peripheral IO API.
I had the same issue sending audio to AUX port while the HDMI port is connected just for video output.
But, the solution that worked for me is, I first deployed my AndroidThings app onto RasPi and connected AUX port to test the audio, then I connected the HDMI to test the video out. In this sequence, everything worked both audio from AUX port and Video from HDMI.

Use Raspberry Pi like GoPro, Live Videostream over WiFi direct connection between Pi and Android

In the last weeks I experimented with my Raspberry Pi B and with the PiCamera. I had the idea to establish a connection between the RasPi and an Android device or (if it is easier) to a windows notebook without an access point in between, just like the GoPro camera and its App. I would like to have a live stream from the PiCamera to the other device and the possibility to start/stop recording a video or simply take a picture.
The app itself is not my problem, I wrote some simple apps before. But I didn't yet find a tutorial or description how to set up the communication and the stream.
I bought a WiFi dongle (Fritz!WLAN Stick N - by AVM) that supports WiFi direct and my phone (Samsung Galaxy S5 mini) does as well.
My first question is how to set up this stick on Raspbian - yet it is not recognises as a wifi dongle, and the second is how to achieve what I descriebed above.
Could anyone please describe what I can do?
Thanks in advance!
PS: I prefer a description for bash because I use SSH

Get AVRCP and BlueZ to work for controlling phone

not sure if I got everything right so please be a bit patient with me ;-)
I setup my RPi with BlueZ + pulse (on Rasbian) audio working as A2DP receiver and it works like charm with my iPhone and iPad. For my project I would like to implement AVRCP to control the audio player over bluetooth.
In the current stable version or Raspian BlueZ is implemented in version 4.99, the last v4 version is 4.101 and BlueZ 5 is already out.
Did anybody get AVRCP to work and control at least the major functions play/pause, prev and next? I would be so happy to implement that as well!
Cheers!
how far have you been going on this task?
am doing almost the same,(PandaBoard-ES + iPhone) and am using Bluez4.98-2ubuntu7.
so far you can get the port of the iPhone responsible for the AV remote Control, create a L2CAP socket and connect your RPi to the device at this port.
until this point you should be able to transfer the music via bluetooth(somehow weird because for this should be used a A2DProfile), any chance, this is working on your Rpi???
Cheers!
Sepp

Is it possible to output video of my iPhone application running on a device?

I am working on an app for a client where he will be showing it in a board from to a group of directors for a serious presentation. Because the iPhone is so small, it wouldn't make sense to have him demo the app on the actual device because no one would see anything.
Is it possible to have the screen output on a computer or tv so that everyone in the room can see what is going on?
http://dragonforged.com/DFVideoOut.shtml
For outputting video off an App from the iPhone/iPod.
Demo of the software http://www.youtube.com/watch?v=upfTZRlszJo
UPDATE: The AV cables described below will not work. Apple only enables TV output for YouTube, iPod Video and iPod Photos.
From Apple's support site:
All you need to get TV out is a compatible iPod or iPhone and the correct cable. If your device works with the component and composite cables, then the choice depends on the TV(s) you will be connecting to.
You need either the Composite AV Cable or the Component AV Cable. Both cables connect to the iPhone's dock connector.
Not unless you're Steve Jobs.
Use the emulator to demo the app via a laptop.
Then pass around an iPhone for the 'hands on' time.
If it's not a phone app, but suitable for the iPod touch, then buy a dozen of them to pass around as demos.
Its not exactly what you want but:
www.projectaphone.com
You cant pass the phone around, but in reality - you need to see the finger interaction anyways.
I wonder if an overhead projector would work - with the projector light turned off of course. Maybe the light emitted from the iPhone would be sufficient in a dark room?
You could demo it on the simulator.
Some applications for jailbroken iPhones exist to let an AV cable work in any application. The ones that come to mind are iPhone-TVOut (http://code.google.com/p/iphone-tvout/) and ScreenSplitr.

iPod touches cannot find each other through GameKit

I have two physical iPod touch devices. If I try running a program that uses a GKPeerPickerController to find another iPod touch running the same program, they just stay at the peer picker screen without any progress. Both have bluetooth enabled. I have tried my own program, along with Apple's GKTank sample app. Neither of the iPods seem to be able to detect bluetooth devices, such as computers in discoverable mode... could this have anything to do with it?
I was able to fix this problem by restoring the software on the older iPod. I wonder if jailbreak may have caused this issue?
A couple assumptions are throwing you off:
The GameKit Bluetooth stuff runs its own protocol, which doesn't involve traditional Bluetooth pairing or discoverability.
The simulator doesn't support connecting to devices via GameKit, so you need to test this with two real devices (or two computers, as the simulator will run the GK protocol over your current TCP connection [ethernet, wifi, etc]).
The Bluetooth bring-up of TCP/IP and Bonjour is really slow, so your first connection will often take upwards of 30 seconds to do any discovery. Even then, it seems flaky to me.
Jailbreaking your iPhone puts everything in play. You should expect stuff to not work, and be grateful if/when it does.
Gamekit only work on second generation iPod Touches (and iPhone 3G and 3GS). You didn't say whether what version your touches are.
I have been getting this error throughout the development of my game. It also leads to other problems when trying to reconnect to another game as the peer picker takes ages to connect so users get impatient. Apple needs to work on getting this more reliable.
I have restored my ipods now so will be interested to see the outcome.