audio-streaming

How to play audio sample buffers from AVCaptureAudioDataOutput

狂风中的少年 提交于 2019-11-30 18:23:34
问题 The main goal of the app Im trying to make is a peer-to-peer video streaming. (Sort of like FaceTime using bluetooth/WiFi). Using AVFoundation, I was able to capture video/audio sample buffers. Then Im sending the video/audo sample buffer data. Now the problem is to process the sample buffer data in the receiving side. As for the video sample buffer, I was able to get a UIImage from the sample buffer. But for the audio sample buffer, I dont know how to process it so I can play the audio. So

Best API for low-level audio in Windows?

帅比萌擦擦* 提交于 2019-11-30 17:29:13
I'm working on an audio application, written in C. I need to provide live audio playback under Windows. I need to decide which audio API to use. I'm planning to use the basic waveOut API , but I wanted to check to see what the community here recommends. I want code that will Just Work on any recent version of Windows, with no need to install libraries; and I want minimal latency. I don't need or want any "effects", I just need to faithfully play whatever wave samples the application generates. My understanding is that most of the professional audio applications on Windows use ASIO, which gives

how to play audio file from url in android

心已入冬 提交于 2019-11-30 15:37:29
问题 I need to play audio file from remote server in my app. I could play when I tested with localhost server (using WAMP). When the same file supplied from the server it is not working.. The file has no extension and the content is MP3 String fileUrl = "http://192.168.1.131/myproject/songs/xyz"; String url = "http://myserver/songs/xyz"; //(myserver -> A remote server) mVideoView.setVideoURI(Uri.parse(fileUrl)); mVideoView.requestFocus(); Also I need to have a better control over player. Please

Playing and controlling mp3 files in Python?

随声附和 提交于 2019-11-30 15:10:40
First things first, I am a Python beginner, with a typical C++/Java background for object oriented stuff. I was convinced to try Python for this current endeavor I am working on, and so far I like it. One issue I am having though is finding a good mp3 module. I have tried TkSnack, which installed and ran fine with no errors(as long as my audio device wasn't busy) but it could never actually produce a sound, it just did nothing... I went online for help, and was disappointed with the amount of documentation. So I decided to switch. I tried PyMad because it is in the standard repositories for

how to play audio file from url in android

夙愿已清 提交于 2019-11-30 14:56:39
I need to play audio file from remote server in my app. I could play when I tested with localhost server (using WAMP). When the same file supplied from the server it is not working.. The file has no extension and the content is MP3 String fileUrl = "http://192.168.1.131/myproject/songs/xyz"; String url = "http://myserver/songs/xyz"; //(myserver -> A remote server) mVideoView.setVideoURI(Uri.parse(fileUrl)); mVideoView.requestFocus(); Also I need to have a better control over player. Please help... public void onRadioClick(View v) { if (!isPLAYING) { isPLAYING = true; MediaPlayer mp = new

Streaming Real time Audio

回眸只為那壹抹淺笑 提交于 2019-11-30 14:20:59
I want to have a functionality of real time audio streaming on android device which is capturing audio through the MIC of the device and send it to the server. I know to send a send a audio file after recording but in case of real time I need help. May be it can be done by sending byte array continually to the server. If so how or if any other way, Please share your ideas. Thanks. EDIT- Android Client Code:- public class Main extends Activity { private MediaRecorder recorder; private final String TAG = "AudioTest"; /** Called when the activity is first created. */ @Override public void

Record streaming and saving internet radio in python

◇◆丶佛笑我妖孽 提交于 2019-11-30 13:21:42
问题 I am looking for a python snippet to read an internet radio stream(.asx, .pls etc) and save it to a file. The final project is cron'ed script that will record an hour or two of internet radio and then transfer it to my phone for playback during my commute. (3g is kind of spotty along my commute) any snippits or pointers are welcome. 回答1: The following has worked for me using the requests library to handle the http request. import requests stream_url = 'http://your-stream-source.com/stream' r

Node - Can't seek audio stream

萝らか妹 提交于 2019-11-30 13:21:12
问题 I have created a simple server that uses the fs module to stream an mp3 file to a browser which plays it in an html5 audio element. As it is, the audio streams perfectly fine, however, I can't seek through the stream, even if the part I seek to has already been buffered. var express = require('express'); var app = express(); var fs = require('fs'); app.get('/', function (req, res) { var filePath = 'music.mp3'; var stat = fs.statSync(filePath); res.writeHead(200, { 'Content-Type': 'audio/mpeg'

How to prevent HTML5 audio from predownload / streaming on load?

走远了吗. 提交于 2019-11-30 12:14:01
问题 I have a single page website which lists a collection of HTML5 audio players. The problem is the site has become slow because the following browsers start predownloading the content (mp3 and ogg) Internet Explorer Google Chrome Firefox Safari (probably Opera) I use the basic code to implement the players. Is there a way I can prevent the browsers from predownloading the audio files and only work when they click play? <audio controls="controls" height="32" width="300" tabindex="0"> <source

Android : recording audio using audiorecord class play as fast forwarded

[亡魂溺海] 提交于 2019-11-30 10:32:31
I am trying to record a audio & stores into a sdcard as well as send to server. When I am trying to play recorded voice its playing,but not as I have recorded. If I record voice for 10mins it ll play for 4min i.e someone has pressed fast forward button with some noisy sound. I am not getting where I am going wrong. Can anybody say me how to solve this problem (should play how much i have recorded i.e 10min recorded then should play only 10mins). Here is the code.. sorry for posting bulk code.. public class Audio_Call extends Activity { private static final int RECORDER_BPP = 16; private static