I'm just new to portaudio and also to node. But I found this library and sample code:
https://github.com/Streampunk/naudiodon/blob/master/scratch/inputToFile.js
I'm trying to see if I can play stream sound in an electron application. The source of the sound will be my pc speakers. and then .. i want to create a object in my index.html in electron and stream the sound in.
Is this possible?
Related
I am implementing a WebRTC project for mobile devices using Cordova, in that I want the play the audio in earpiece of mobile device instead of speaker.
Is there any API/ way to play audio in earpiece,
I'm using cordova-plugin-iosrtc for iOS app and cross-walk for android.
Thanks,
Shinto
You can try with:
cordova.plugins.iosrtc.selectAudioOutput('earpiece');
Here you can find iosrtc documentation
I have an app that plays text to speech at certain events to let the user know what's going on. Due to the target audience of this app, it is likely that the user is playing music in the background. When I call play on the MediaElement the background audio stops and does not resume. In a similar app for Windows Phone 8.0 I handled this by creating a background audio task project, but that behavior is deprecated in 8.1. I've exhausted Bing, Google and the Windows API reference and can't find a solution. This must be possible because I listened to music for hours on Saturday while receiving voice navigation from Here maps and never had to restart the music.
i am not able to play the audio file onclick of a button.
here is the code i got from the xdk website.
function audioBtn()
{
// play the sound
intel.xdk.player.playSound("sounds/anything.wav");
}
the audio location is:
C:\Users\abc\Documents\pqr\www\sounds\anything.wav
Thanks in advance....
Intel XDK Emulator doesn't support playing audio files using the intel.xdk Player object, but this does work within the Intel App Preview mobile app for testing by scanning the QR Code under the Test tab.
For example, you can play audio files (supported by your platform of course) within your application in App Preview or on device as follows
intel.xdk.player.playSound(intel.xdk.webRoot + "sounds/anything.wav");
intel.xdk.webroot contains the path for the www/ directory.
I have a j2me app built for a CDC device. I have used Personal profile to display the UI.
However now I need to play audio. AFAIK in j2me I can play audio only through J2me MMAPI i.e JSR135.
But on my device I don't have this. So can someone provide me input how I should go about porting this jsr on my device. It is a linux based ARM device. I had built and compiled cdc and personal profile by myself and ported on to the device. But now I am unable to find source code for Mobile media api.
Or do you have any option other than MMAPI to play audio?
I am unable to find source code for Mobile media api
Well as far as I can tell, above is available in an open source project PhoneME. MMAPI classes like Player, Manager, Control etc are shown at below link to their SVN code repository:
svn / components / jsr135 / trunk / src / share / core / javax / microedition / media
I am trying to add music player to my iphone app using the MediaPlayer framework. I dont have a real device with me and want to test it on simulator. But, the simulator doesnt support MPMusicPlayer and crashes when i run the add media app.
Is there a way I could test MPMusicPlayer on simulator?
You can't add music to the simulator so MPMusicPlayer will fail. It will have to be tested on a device.