audio-streaming

How to access data obtained by WebClient.DownloadDataAsync?

[亡魂溺海] 提交于 2019-12-12 03:27:25
问题 (This is a follow-up question to this one.) I want to read an endless audio stream asynchronously, so that I can do my JIT analysis on the obtained data. Using a WebClient object's DownloadDataAsync method, I can initiate the download easily, see following Win form project: Imports System.Net 'For WebClient Public Class Form1 Private WithEvents c As New WebClient() Protected Overrides Sub Finalize() c.Dispose() MyBase.Finalize() End Sub Private Sub Form1_Load(sender As Object, e As EventArgs)

GStreamer AAC audio stream delay in iOS

我怕爱的太早我们不能终老 提交于 2019-12-12 03:24:30
问题 I'm playing aac audio stream on my iOS device using GStreamer SDK, its working fine, but delay is above 2.0 seconds. Can I make this delay lower then 2.0 seconds? There may be some buffering issue. This is how I'm creating the pipeline pipeline = gst_parse_launch("playbin2", &error); 回答1: try setting the latency like this: g_object_set(G_OBJECT(pipeline.source), "latency", 250, NULL); 来源: https://stackoverflow.com/questions/32865653/gstreamer-aac-audio-stream-delay-in-ios

How do I get the output from an ASIO device to IceCast2 or FFMpeg?

泪湿孤枕 提交于 2019-12-11 23:04:56
问题 I have an ASIO device (Presonus Firestudio 2626). I am using it to mix and create different outputs on all of it's provided outputs (about 9 outputs like ADT1, ADT2). I need someway to stream these outputs using either IceCast or FFMpeg RTP. One of the problems is that I have a restriction on using only a MAC or a Windows machine as my ASIO device does not provide drivers for ubuntu. What are the ways that I can connect the ASIO device outputs to IceCast or FFMpeg? I've tried the following.

Get ID3 tags from stream on iPhone

只谈情不闲聊 提交于 2019-12-11 19:16:56
问题 I can not get title of song and name of composer on iPhone from HTTP Live Stream (using m3u, m3u8 playlist files). I've tried get it from this site tempomix radio. this is link to streaming - http://stream21.group-network.net:9012 I'm trying use next code: AVPlayerItem *playerItem = [AVPlayerItem playerItemWithURL:url]; _player = [[AVPlayer playerWithPlayerItem:playerItem] retain]; _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; [_player addObserver:self forKeyPath:@"status" options

OpenAL alSourceUnqueueBuffers & alSourceUnqueueBuffers

♀尐吖头ヾ 提交于 2019-12-11 17:46:43
问题 everyone , I have a problem about the API-- alSourceUnqueueBuffers when I use the OpenAL Libaray. My problem as follows: 1.I play a pcm-music though streaming mechanism. 2.The application can queue up one or multiple buffer names using alSourceQueueBuffers. when a buffer has been processed. I want to fill new audio data in my function: getSourceState . but when I use the API of OpenAL alSourceUnqueueBuffers. it returns an error --- AL_INVALID_OPERATION . I do this as the document about the

Using UWP monitor live audio and detect gun-fire/clap sound

淺唱寂寞╮ 提交于 2019-12-11 17:15:54
问题 I am developing a new UWP app which should monitor sound and fire a event for each sudden sound blow ( something like gun fire or clap ). It needs to enable default Audio Input and monitor live audio. Set audio sensitivity for identifying environment noise and recognizing clap/gun-fire When there is a high frequency sound like a clap/gun-fire sound ( Ideally it should be like configured frequency like +/-40 then it is a gun-fire/clap ) then it should call a event. No need to save Audio I

iOS Library to Play the wav file coming over the socket

╄→尐↘猪︶ㄣ 提交于 2019-12-11 16:23:03
问题 I am connecting to a socket which is transmitting audio wav file in 1024 byte chunks and I am looking for a swift library to play that. Just wondering if there is any. Current state of my code is this. import UIKit import SwiftSocket class ViewController: UIViewController { let port : UInt32 = UInt32(8190) let host = "localhost" let BUFF_SIZE = 1024 let SECRET = "MYSECRET" override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. let client =

Audio Stream WiFi to WiFi - Broadcast

此生再无相见时 提交于 2019-12-11 09:33:47
问题 I have a requirement for an IOS app where a user will start the app, records an audio speech (via device microphone) which would be broadcast to other user on the same network, all this has to be live over wireless connection(WIFI). I did some research for possible solutions and also tried audio streaming via HTTP URL, but it was not feasible and also involves internet. I'm looking for your opinions and if it's doable then what is the right approach, (what libraries and API's should I look

How to create an audio file metadata header if I am streaming data to icecast?

牧云@^-^@ 提交于 2019-12-11 07:55:08
问题 How do I send the metadata header to the icecast server ? I am recording in AAC and streaming it to the icecast server through ios but the file shows corrupt . I suspect that the metadata needs to be added to be able to play a file. How do i send the metadata ? SHould i send it as a string ? What should be the format ? 回答1: The metadata is not required for a stream to function. If your data is corrupt, you are either encoding it wrong or are sending the wrong Content-Type header. That being