audio-streaming

stream media FROM iphone

我只是一个虾纸丫 提交于 2019-11-29 23:23:40
I need to stream audio from the mic to a http server. These recording settings are what I need: NSDictionary *audioOutputSettings = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInt: kAudioFormatULaw],AVFormatIDKey, [NSNumber numberWithFloat:8000.0],AVSampleRateKey,//was 44100.0 [NSData dataWithBytes: &acl length: sizeof( AudioChannelLayout ) ], AVChannelLayoutKey, [NSNumber numberWithInt:1],AVNumberOfChannelsKey, [NSNumber numberWithInt:64000],AVEncoderBitRateKey, nil]; API im coding to states: Send a continuous stream of audio to the currently viewed camera. Audio needs to

android code for streaming shoutcast stream breaks in 2.2

旧时模样 提交于 2019-11-29 23:18:31
The following code works fine on Android 2.1update1 - package com.troubadorian.android.teststreaming; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.view.animation.AnimationUtils; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.Gallery; import android.widget.ImageButton; import android.widget.ProgressBar; import android.widget.TextView; import android.widget

Android MediaPlayer takes long time to prepare and buffer

淺唱寂寞╮ 提交于 2019-11-29 21:28:51
My application takes a long time to prepare and buffer an audio stream. I have read this question Why does it take so long for Android's MediaPlayer to prepare some live streams for playback? , however it just says people have experienced this issue, it does not state how to improve the problem. I am experiencing this in all versions of Android, tested from 2.2 - 4.1.2. The streams are in a suitable bit-rate for mobile and 3G connection. The same stream takes less than a second to start buffering in the equivalent iOS app. Is there a way to specify the amount of time that should be buffered? I

Playing and controlling mp3 files in Python?

穿精又带淫゛_ 提交于 2019-11-29 21:16:37
问题 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

Best API for low-level audio in Windows?

帅比萌擦擦* 提交于 2019-11-29 16:59:17
问题 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.

Android : recording audio using audiorecord class play as fast forwarded

孤街醉人 提交于 2019-11-29 15:46:20
问题 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.

Streaming audio from microphone with Java

馋奶兔 提交于 2019-11-29 15:16:30
问题 I'm developing a project which requires me to stream audio from microphone from a client to a server. The code shown below is what I have written. When I run both the client and server code the audio is not streamed live. In fact the audio from the client is stored in the buffer and when I terminate the execution of the client side code the audio from the buffer on the server gets output to the speaker. What am I doing wrong? (I'm developing on eclipse) server: import java.io.DataOutputStream

MediaElement not playing audio from stream WP7

我只是一个虾纸丫 提交于 2019-11-29 12:24:31
string url = re["response"][0]["url"].ToString(); MediaElement mm = new MediaElement(); mm.Source = new Uri(url,UriKind.RelativeOrAbsolute); mm.AutoPlay = true; mm.Volume = 0.7; mm.Play(); But no changes, the adudio not starts.How I can resolve this? You need to add your MediaElement to your VisualTree before playing it, since you're creating it in the codebehind. For example, assuming you have LayoutRoot and that your url is correct, this should work. string url = re["response"][0]["url"].ToString(); MediaElement mm = new MediaElement(); mm.Source = new Uri(url,UriKind.RelativeOrAbsolute); mm

How can I play audio stream without saving it into the file with pyglet?

人盡茶涼 提交于 2019-11-29 12:18:25
Now I have these libraries: requests , pyglet , pyaudio How can I play an audio stream using ones, for example, from this site without saving it into the file(using buffering)? There is a confusing information in documentation of this library about a StreamingSource class When I push the information in bytes in StreamingSource object(source.get_audio_data(DATA)) and after that I push this one into a Player(pyglet.media.Player()) it throws an exception, that says that the StreamingSource hasn't attribute duration Code: import pyglet, requests req = requests.get('http://ic7.101.ru:8000/c15_3',

Basic streaming audio works in 2.1 but not in 2.2

我是研究僧i 提交于 2019-11-29 08:44:55
My simple audio streaming app works perfectly in 1.6 and 2.1 does not work in 2.2. I have no clue as to why. It works fine on the emulator, on actual 2.2 devices the audio stops unexpectedly after about 10 minutes or so. When I looked at logcat on my phone (HTC EVO) I see this: I/HTTPStream( 65): 1358 Bytes read, progress 34346/65536 I/HTTPStream( 65): 1358 Bytes read, progress 35704/65536 I/HTTPStream( 65): 1359 Bytes read, progress 37063/65536 I/HTTPStream( 65): 1358 Bytes read, progress 38421/65536 I/HTTPStream( 65): 1358 Bytes read, progress 39779/65536 I/HTTPStream( 65): 1359 Bytes read,