audio-streaming

How to convert the float32Array format of native html5 recorded audio to proper bytes for Google Speech-to-Text service?

匆匆过客 提交于 2019-12-23 04:48:25
问题 If you follow this tutorial: https://medium.com/ideas-at-igenius/delivering-a-smooth-cross-browser-speech-to-text-experience-b1e1f1f194a2 you will manage to create a script processor to which you add a listener scriptProcessor = inputPoint.context.createScriptProcessor(bufferSize, in_channels, out_channels) //... scriptProcessor.addEventListener('audioprocess', streamAudioData) Inside the callback by calling this line: callback_param.inputBuffer.getChannelData(0) one receives a javascript

Getting stuttering during rendering of my DirectShow filter despite output file being “smooth”

妖精的绣舞 提交于 2019-12-23 03:49:14
问题 I have a DirectShow application written in Delphi 6 using the DSPACK component library. I have two filter graphs that cooperate with each other. The primary filter graph has this structure: Capture Filter with 100 ms buffer size. (connected to) A Sample Grabber Filter. The "secondary" filter graph has this structure. Custom Push Source Filter that accepts audio directly to an audio buffer storehouse it manages. (connected to) A Render Filter. The Push Source Filter uses an Event to control

How to stream an mp3 file using a temporary file?

我只是一个虾纸丫 提交于 2019-12-23 03:42:18
问题 I am working an Mp3 streamer. To stream mp3 file from url, I want to use a temporary file. But trying to read and write the same file throws IOException for File.ReadAllBytes because the file is in use. How can I get throught this problem? long pos = 0; string path = pathtothetempfile; MemoryStream ms = new MemoryStream(); FileStream fs = new FileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite); do { bytesRead = responseStream.Read(buffer, 0, buffer.Length); fs.Write

Playing MMS streams within Python

此生再无相见时 提交于 2019-12-23 02:52:49
问题 I'm writing a XM desktop application (I plan on releasing the source on github when I'm finished if anyone is interested) Anyway, the one part I know very little about is how to play media within Python (I'm using PyQt for the frontend). Basically, I have a mms:// url that I need to play. I was wondering if there is a library that could accomplish this or something, really I just need someone to point me in the right direction. I know its possible, because SMplayer (Python implementation of

Is there a way to record an audio stream using Matt Gallagher's audio streamer?

半城伤御伤魂 提交于 2019-12-23 02:17:15
问题 I use Matt Gallagher's audio streamer for streaming radio stations. But how to record the audio? Is there a way to get the downloaded packets into NSData and save it in an audio file in the documents folder on the iPhone? Thanks 回答1: Yes, there is and I have done it. My problem is being able to play it back IN the same streamer (asked elsewhere). It will play back with the standard AVAudioPlayer in iOS. However, this will save the data to a file by writing it out in the streamer code. This

How can I get AudioKit to stream an audio file from a remote URL?

被刻印的时光 ゝ 提交于 2019-12-22 19:12:13
问题 I'm trying to play audio files from URLs in an iOS app (Swift 4). I'd like them to buffer and play while downloading. And I quite like AudioKit, but for the life of me and I can't figure out how to make it read remote files. Any suggestions? 回答1: You can't find it because its not there. We've never implemented any streaming functionality. It could be added though, and a number of people like yourself would be quite pleased. Consider contributing some code if you manage to work it out. We can

How to add a song progress bar in SoundManager2?

十年热恋 提交于 2019-12-22 18:13:06
问题 I am trying to add a progress bar to show what position a song is at during playback. It only needs to be a simple solution. I found some code online, which uses SoundManager2 http://www.schillmania.com/projects/soundmanager2/ features to adjust a div width to match the song's position but it doesn't seem to be working, not sure where I am going wrong, any help would be appreciated. I have used all the required Soundmanager2 files and playback of the songs work. It's only the progress bar

Using Fluidsynth to play notes from SoundFonts on Android

时间秒杀一切 提交于 2019-12-22 06:16:33
问题 Is there a way to allow android to play sounds using SoundFont files via using FluidSynth? I've been looking at jOrgan but the source code seems to be kind of... overwhelming to say the least. Problem is that java sound API is not supported in android so a great sample to the project i'm in would have been Java Sound Demo's Midi Synth. I think I should be fine with some porting from C to JNI but I'm not knowledgeable when it comes to handling audio features (I've only read and started

Stream overlapping audio files to Chromecast Audio

喜夏-厌秋 提交于 2019-12-22 05:41:59
问题 Short I would like to stream multiple overlapping audio files (some sound effects that play at certain random times). So kind of a generated audio stream that will NEVER repeat exactly the same way. Some audio files are looping, some are at specific times. Probably kind of realtime stream insertion would be good I guess. What is the best way to write such a server software? What protocols should be used for streaming that (I prefer over HTTP). I would probably want to expose an url for each

How do I use gstreamer to make an audio clip from a segment of a longer source?

烈酒焚心 提交于 2019-12-21 20:49:42
问题 I would like to use gstreamer to save an arbitrary clip from one audio file to a new file. For example, a segment from 1 minute to 2 minutes in the original. How do I do it? 回答1: You need gnonlin. See http://www.jonobacon.org/2006/12/27/using-gnonlin-with-gstreamer-and-python/ You won't need a gnlcomposition because you only want one segment. Use a gnlfilesource with its start and duration set to 0, 1 minute, and media-start and media-duration set to 1 minute, 1 minute. All times and