audio-streaming

audio streaming services failing to recognize file type

喜你入骨 提交于 2019-12-02 08:09:18
问题 I was working on streaming audio live using the Audio Streaming Services library (based on Matt Ghallager's tutorial) and I kept on crashing at this part: err = AudioQueueStart(audioQueue, NULL); if (err) { [self failWithErrorCode:AS_AUDIO_QUEUE_START_FAILED]; return; } the error code is: kAudioDeviceUnsupportedFormatError.. this guy is defined in CoreAudio/AudioHardware.h, which seems to be a hardware related problem. I couldn't find much useful information about this error on the web. The

Best way to stream MP3 from an iPhone app?

五迷三道 提交于 2019-12-02 05:03:31
问题 I am working on an application that will stream music from a server of mine from an iPhone application. This is my first iPhone app so I am a bit confused : What would be the best way to do this? Is there something already built in that I could use, like a MP3 player that I just need to point toward the correct server? Do I need a streaming server to do so? 回答1: I'm relatively new to Objective-C/Cocoa (touch), but I have read an article on the cocoawithlove site titled "Streaming and playing

How to play sound from tcp stream in java

倾然丶 夕夏残阳落幕 提交于 2019-12-02 02:59:20
There is another app that writes raw wav file on this socket. The client starts and begins listening to the song which is currently playing. Socket clientSocket = new Socket("localhost", 9595); AudioInputStream stream = AudioSystem.getAudioInputStream(clientSocket.getInputStream()); I get javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream Doc about AudioSystem.getAudioInputStream: "Obtains an audio input stream from the provided input stream. The stream must point to valid audio file data." How to play sound from a TCP stream? Considering the

Best way to stream MP3 from an iPhone app?

僤鯓⒐⒋嵵緔 提交于 2019-12-02 00:18:06
I am working on an application that will stream music from a server of mine from an iPhone application. This is my first iPhone app so I am a bit confused : What would be the best way to do this? Is there something already built in that I could use, like a MP3 player that I just need to point toward the correct server? Do I need a streaming server to do so? Jorge Israel Peña I'm relatively new to Objective-C/Cocoa (touch), but I have read an article on the cocoawithlove site titled "Streaming and playing an MP3 stream" and tested the sample code on my iPhone and it works perfectly. I don't

Firefox ignoring response header content-range and playing only the sample sent

前提是你 提交于 2019-12-01 22:18:38
问题 I have built an audio stream for mp3 files, and each time client hits the audio it receives something like this: But what it does is just plays 1 minute sample instead of 120 minute What am I doing wrong here? 回答1: Not 100% sure because you didn't provide code or an example stream to test, but your handling of HTTP range requests is broken. In your example request, the client sends Range: bytes=0- , and your server responds with a 1MiB response: Content-Length: 1048576 (aka. 1 MiB) Content

How can I stop and resume a live audio stream in HTML5 instead of just pausing it?

社会主义新天地 提交于 2019-12-01 20:56:40
问题 A notable issue that's appearing as I'm building a simple audio streaming element in HTML5 is that the <audio> tag doesn't behave as one would expect in regards to playing and pausing a live audio stream. I'm using the most basic HTML5 code for streaming the audio, an <audio> tag with controls, the source of which is a live stream, which can be demonstrated here: http://jsfiddle.net/uzzz03ha/ Current outcome : When the stream is first played, it plays whatever is streaming as expected. When

Playing mp3 Shoutcast streams with HTML5 audio in Firefox?

只愿长相守 提交于 2019-12-01 20:47:40
I'm trying to play mp3 shoutcast stream radio stations with HTML5 audio. I don't think it will be relevant but here is the code anyway: var player = new Audio(); player.autobuffer = true; player.src = "http://173.192.48.71:9048/;"; player.volume = 1; player.play(); Shoutcast detects that request comes from browser and returns radio status page, so I put ";" at the end of stream which forces server to return audio stream instead of status page. This works fine in Chrome and Safari, but not in Firefox. Firefox for some reason detects this as text/plain content and refuses to play it with this

How can I stop and resume a live audio stream in HTML5 instead of just pausing it?

孤街浪徒 提交于 2019-12-01 20:09:40
A notable issue that's appearing as I'm building a simple audio streaming element in HTML5 is that the <audio> tag doesn't behave as one would expect in regards to playing and pausing a live audio stream. I'm using the most basic HTML5 code for streaming the audio, an <audio> tag with controls, the source of which is a live stream, which can be demonstrated here: http://jsfiddle.net/uzzz03ha/ Current outcome : When the stream is first played, it plays whatever is streaming as expected. When it's paused and played again, however, the audio resumes exactly where it left off when the stream was

POST Streaming Audio over HTTP/2 in Android

家住魔仙堡 提交于 2019-12-01 18:35:40
Some background: I am trying to develop a voice-related feature on the android app where a user can search using voice and the server sends intermediate results while user is speaking (which in turn updates the UI) and the final result when the query is complete. Since the server accepts only HTTP/2 single socket connection and Android HTTPUrlConnection doesn't support HTTP/2 yet, I am using Retrofit2. I have looked at this , this and this but each example has fixed length data or the size can be determined beforehand... which is not the case for audio search. Here's what my method for POST

How transfer system mic audio stream to attached device mic audio stream

自作多情 提交于 2019-12-01 17:02:20
I am trying to attach USB device used for tele calling which have pnp sound controller for mic and speaker. Now i have two speaker and two mic for input output as shown in image below. . Now my motive is to transfer audio stream from system mic to usb mic and from usb speaker to system speaker. I tried to solve this issue with virtual cable software but with this i need to depend on third party. What can be the possible solution that can attained using c#. I don't have knowledge about this, so don't know how to start. After googling i found CS Core N Audio Can help me i don't know how. public