audio-streaming

Audio Recording and Streaming in Android

北城余情 提交于 2019-11-27 22:44:28
问题 I an developing an android app. I want to accomplish below feature. I will use my phone's built-in mic to record and at the same time i want the recorded audio to be played through either phone's speakers or headphones. Is it feasible? If yes, please help me in this. 回答1: Here is a simple Recording and Playback application. Uses Android AudioRecord and AudioTrack, Design : The recorded audio is written to a buffer and played back from the same buffer, This mechanism runs in a loop (using

Can I use Firebase Storage for online music streaming?

你说的曾经没有我的故事 提交于 2019-11-27 20:19:11
问题 What I want is to save mp3 files on Firebase Storage and then stream it to an Android device. All the tutorials on Firebase discuss about the image file upload and download. If there are any other cloud that is more easy than Firebase to store and stream audio for android, then please suggest. 回答1: Firebase provide StreamDownloadTask as Mike has suggested, for getting InputStream but unfortunately MediaPlayer doesn't accept a direct stream. Now we have 2 options if we strictly like to

Creating a rtsp client for live audio and video broadcasting in objective C

删除回忆录丶 提交于 2019-11-27 19:22:04
问题 I am trying to create a RTSP client which live broadcast Audio and Video. I modified the iOS code at link http://www.gdcl.co.uk/downloads.htm and able to broadcast the Video to server properly. But now i am facing issues in broadcasting the audio part. In the link example the code is written in such a way that it writes the Video data to file and than reads the data from the file and upload the NALU's video packets to RTSP server. For Audio part i am not sure how to proceed on it. Right now

Audio Recording and Streaming in Android

亡梦爱人 提交于 2019-11-27 19:07:26
问题 I an developing an android app. I want to accomplish below feature. I will use my phone's built-in mic to record and at the same time i want the recorded audio to be played through either phone's speakers or headphones. Is it feasible? If yes, please help me in this. 回答1: Here is a simple Recording and Playback application. Uses Android AudioRecord and AudioTrack, Design : The recorded audio is written to a buffer and played back from the same buffer, This mechanism runs in a loop (using

Audio data streaming in HTML5

假如想象 提交于 2019-11-27 18:02:38
I am receiving PCM audio data from the server in small chunks and having them stored in an Array. Now I would like to play these audio chunks sequentially without gaps using some HTML5 capability. Two options which I am looking at as 'possible' solutions are: HTML5 Audio tag with Data URI Web audio API While I am investigating these options, please suggest me any other option or views on the two options I am looking at. Though a cross platform solution will be the best but I can settle for Chrome only solution as Scheduling audio is something the Web Audio API was designed for. If you have the

Realtime Audio/Video Streaming FROM iPhone to another device (Browser, or iPhone)

ぐ巨炮叔叔 提交于 2019-11-27 17:45:20
I'd like to get real-time video from the iPhone to another device (either desktop browser or another iPhone, e.g. point-to-point). NOTE: It's not one-to-many, just one-to-one at the moment. Audio can be part of stream or via telephone call on iphone. There are four ways I can think of... Capture frames on iPhone, send frames to mediaserver, have mediaserver publish realtime video using host webserver. Capture frames on iPhone, convert to images, send to httpserver, have javascript/AJAX in browser reload images from server as fast as possible. Run httpServer on iPhone, Capture 1 second duration

Live audio stream java

♀尐吖头ヾ 提交于 2019-11-27 15:00:24
问题 I am implementing live streaming from MIC to java server at another PC. But I am only hearing a white noise. I have attached both client and server program Client: import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import java.net.UnknownHostException; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax

Using AudioTrack in Android to play a WAV file

萝らか妹 提交于 2019-11-27 11:56:30
I'm working with Android, trying to make my AudioTrack application play a Windows .wav file (Tada.wav). Frankly, it shouldn't be this hard, but I'm hearing a lot of strange stuff. The file is saved on my phone's mini SD card and reading the contents doesn't seem to be a problem, but when I play the file (with parameters I'm only PRETTY SURE are right), I get a few seconds of white noise before the sound seems to resolve itself into something that just may be right. I have successfully recorded and played my own voice back on the phone -- I created a .pcm file according to the directions in

record output sound in python

自闭症网瘾萝莉.ら 提交于 2019-11-27 11:48:23
问题 i want to programatically record sound coming out of my laptop in python. i found PyAudio and came up with the following program that accomplishes the task: import pyaudio, wave, sys chunk = 1024 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 44100 RECORD_SECONDS = 5 WAVE_OUTPUT_FILENAME = sys.argv[1] p = pyaudio.PyAudio() channel_map = (0, 1) stream_info = pyaudio.PaMacCoreStreamInfo( flags = pyaudio.PaMacCoreStreamInfo.paMacCorePlayNice, channel_map = channel_map) stream = p.open(format =

The easiest way to play an audio RTMP stream in Android

我是研究僧i 提交于 2019-11-27 11:15:29
I found some Android RTMP libraries (like this : http://rtmpdump.mplayerhq.hu/ ). The problem is that there is no accurate documentation on how we can use it. In my case, I have a simple RTMP live audio stream (ex: rtmp://myserver/myapp/myliveaudio). What is the easiest way to read it in my Android app? Please, I don't want links: I need some pieces of code or some accurate step-by-step explanation. Thank you very much. It is unfortunately non-trivially difficult to do. Right now your best bet is to look at the code in http://code.google.com/p/android-rtmp-client/ : specifically look at http:/