Hi I am trying to build an embedded ARM board with toslink for my hifi amplifier. and the ARM is built with 720Mhz and running ARM version of ubuntu 12.04 linux.
Is there any open source module/library to implement Apple Airplay? So I can stream my music to my high quality audio to my board and finally to drive my speakers?
I wrote a node.js module with AirPlay support, which you can find on NPM or on github:
https://github.com/lperrin/node_airtunes
I included an example to stream an MP3 file to a nearby server.
node play_ffmpeg.js --host <Your AirPlay Host> --port <Your AirPlay Port> --file <Your MP3 file> --ffmpeg <Path to FFmpeg>
Try http://www.flyn.org/projects/libdmapsharing/
Libdmapsharing also detects audio AirPlay services; coupled with the
AirPlay™ support in PulseAudio or GStreamer, this can allow an
application to stream audio to an AirPlay device.
Related
Edit:
I discovered, that if I run parec | paplay --raw it does play back properly.
How is this possible? There should be just a simple module-loopback error or something like that.
I´m using the CHIP SBC from getchip.com to build an embedded bluetooth audio receiver.
getchip.com offers a debian linux and a customizable buildroot distribution.
I got everything working on the debian distribution with one exception. The volume control with iOS devices don´t work because of the lack of uinput inside the debian kernel.
That´s why i tried to get it to work with the buildroot distribution. It took me a while to get bluetoothd running with simple-agent, as well as pulseaudio built with bluetooth support and the dbus configuration.
I finally got everything ready.
But:
I can connect to the sbc, but there is no sound playing on the headphone jack.
My debugging steps so far:
I´m able to play a local .wav file via paplay
just fine.
I allowed every communication via dbus
the pulseaudio logs show, that sound is coming from the bluetooth source.
the module-switch-on-connect does spawn a loopback from the bluetooth source to the same audio sink as paplay uses.
Debug Logs:
Boot log
Pulseaudio verbose startup
/usr/bin/pulseaudio -vvvv --system --daemonize --disallow-exit
Bluetoothd verbose connection
/usr/libexec/bluetooth/bluetoothd -C -d &
and the bt-agent:
/usr/bin/bt-agent -d -c NoInputNoOutput -p /home/cubbo/.config/bluetooth-default-pin
Pulseaudio verbose connection
Configuration:
Pulseaudio system.pa
Pulseaudio daemon.conf
dbus system.conf
dbus-1/system.d/bluetooth.conf
dbus-1/system.d/pulseaudio-bluetooth.conf
bluetooth/audio.conf
bluetooth/main.conf
I´m pretty sure that I just miss some little configuration and it´ll play just fine. But after nearly one week of debugging I wanted to ask you for help.
I hope I´ve done everything right with attaching the logs via pastebin.
I would appreciate your help!
Thanks!
Greetings, Phil.
I had a similar problem on Antergos, A2DP was not available in pulseaudio.
A2DP was available only when restarting bluethooth service by "systemctl restart bluethooth"
It resulted to be a problem caused by GDM that opened another instance of pulseaudio and captured the bluethooth device. I prevented pulseaudio capturing bluethooth device by masking it for GDM user.
https://wiki.archlinux.org/index.php/Bluetooth_headset#Connecting_works.2C_but_I_cannot_play_sound
$ mkdir -p ~/.config/systemd/user
$ ln -s /dev/null ~/.config/systemd/user/pulseaudio.socket
[restart required]
i have install all prerequisite for cordova project in my system.
installed software like below.
1)node.js
2)cordova
3)phonegap
4)npm
5)jdk
6)jre
7)android - sdk
error image here error like in image.
when i have run 'cordova run android' in my project directory using CLI
then error/output like in attached image.
i have already set path in environment variables.
please suggest some solution.
This command is for running the app on an actual device. Have you set up the device and enabled USB debugging?
From the docs:
Alternately, you can plug the handset into your computer and test the
app directly:
$ cordova run android
Before running this command, you need to set up the device for testing, following procedures that vary for each
platform. In Android and Amazon Fire OS devices, you would have to
enable a USB debugging option on the device, and perhaps add a USB
driver depending on your development environmnent. See Platform Guides
for details on each platform's requirements.
If you want to run the app in an emulator instead you should use:
$ cordova emulate android
Read all about it at: https://cordova.apache.org/docs/en/5.1.1/guide/cli/index.html
Where does the node js files of any IoT project get uploaded by the daemon in the galileo board while using intel xdk iot edition.
You can find your project files uploaded from Intel XDK IoT Edition in the .node_app_slot folder.
When you connect to the Intel Galileo Gen 2 board via SSH or serial connection, you can run the ls -al command to view the folder in the current directory.
I use an Kinect, Model 1517, and cloned the master branch from the OpenKinect/libfreenect repo to my Ubuntu 14.04 LTS x64.
My target is to do some fancy stuff with the build in mic-array.
But if I want to test the sources and execute a sample program, I get following output :
$ ./freenect-glview
Kinect camera test
Number of devices found: 1
Could not open audio: -1
Failed to open motor subddevice or it is not disabled.Failed to open audio subdevice or it is not disabled.Could not open device
During compilation no error or warning is pointed out. With debugging I isolated the failure to the initialization of FREENECT_DEVICE_MOTOR.
I also tried to download the stable package version, using
$ sudo apt-get install freenect
but (not in freenect-glview but in other samples) this error occurs too.
What differs from all the tutorials and guides I read, is that after the command $lsusb the output just shows three devices named 'Microsoft Corp.', instead of a longer description like Bus 001 Device 006: ID 045e:02ad Microsoft Corp. Xbox NUI Audio.
Do you have any plans, how I can fix this Problem? I assume, if it doesn't work in these samples, that it also wont work in an selfmade one.
Try running with administrator privileges. I had the same problem and that worked for me.
$ sudo ./freenect-glview
Right now I am using the standard Arduino IDE 1.0.1.
Yet I find both the IDE itself flunky and myself editing the code in other editors only to have to copy paste it inside the IDE and upload it there to my Arduino.
I really dislike this workflow.
So I am wondering: Is there a different way to deploy an Arduino project at best via commandline? Basically I am looking for a way to run something like arduino deploy /path/to/project /dev/ttyUSB0 from bash.
You need a program called avrdude to upload the binary onto your target, and modify the parameters according to your setup and target:
mcu=atmega8
f_cpu=16000000
format=ihex
rate=19200
port=/dev/ttyusb0
programmer=stk500
target_file=test.hex
avrdude -F -p $mcu -P $port -c $programmer -b $rate -U flash:w:$target_file
If you're on a Debian or an Ubuntu machine, you should be able to do this to install avrdude:
sudo apt-get install avrdude
Otherwise you should be able to grab the sources from here and build it yourself.
Also there is a comprehensive Makefile that you could use to build and upload to your Arduino which again uses the similar avrdude commands to upload to the target. After changing the parameters in the Makefile, run make upload to upload the hex file to the target.
NOTE: You need to have gcc-avr and avr-libc packages installed to build the binaries (which from the question looks like you're already doing).
Following are two options which you can try
Arduino 1.5.x only
If you are using Arduino 1.5.x then you can use the arduino executable can accept commandline parameters.
Note that Arduino 1.5.x is still in beta, so you may face some issues.
Arduino 1.0.x
If you are using Arduino 1.0.x then you can use my makefile for Arduino which can be used to compile and upload Arduino (or plain AVR C) programs to Arduino from the commandline.
Following are some of the important features of this makefile
Supports upload via Arduino as ISP or any programmer
Communicate with Arduino through serial
Supports compiling plain AVR C programs
Supports user as well as system libraries.
Generate assembly and symbol files
Program using alternate Arduino core (like ATtiny or Arduino alternate cores)
I have made a arduino builder for ubuntu/linux which helps
Build
Upload
Listen serial port
Track changes in sketch files
Builder and instructions how to setup everything can be found here:
https://github.com/limitium/arduino_builder
Also you can see small demonstration video about it here:
https://youtu.be/Nu3YGMoXORI