I've got an angular 5 application where I've set the click handler of a button to download an audio file and play it. I'm using this code to do so:
onPreviewPressed(media: Media): void {
const url = ".....";
this.httpClient.get(url,…
I'm trying to access the outputLatency feature in Chrome 64, but the property is undefined.
According to the documentation it should work only on Chrome https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/outputLatency
I know the feature…
I am trying to manipulate gain on individual buffers in an OfflineAudioText.
ac and data are previously determined after loading it in
var source = ac.createBufferSource();
source.buffer = data;
var splitter = ac.createChannelSplitter(2);
…
I need to send sound input to server. Can I send it as variable? What should I do in the function start_microphone(), and what methods of AudioContext() should I use?
var input = null;
var webaudio_tooling_obj = function() {
var audioContext =…
I'm trying to load audio with XMLHttpRequests and AudioContext, my code looks like this:
class AudioExample
audioContext: null
init: ->
AudioContext = window.AudioContext || window.webkitAudioContext
@audioContext = new…
I want to crush this Javascript code:
var ac = new AudioContext; //works fine without this line
var oscillator = ac.createOscillator();
var analyser = ac.createAnalyser();
var gain = ac.createGain();`
with this…
The following code is where I can put the current TimeDomainData into an array.
fbc_array = new Uint8Array(analyser.frequencyBinCount);
analyser.getByteTimeDomainData(fbc_array);
And then I can use the for statement to let each…
No problems to record the microphone, connect the analyzer for a nice vu-meter, re-sample the massive amount of data to something we can handle (8Khz, Mono) using 'xaudio.js' from the speex.js lib and to wrap it into an appropriate WAV…
I am trying to convert the PCM output of HTML5 audiocontext (e.g. buffer.getChannelData(0), ...) to PCM data that is required by "FLAC__stream_encoder_process_interleaved"
The weird thing is FLAC requires data as int32 buffer (const FLAC__int32…
I'm working on a Web App and we're using the WebKit AudioContext.
I'm trying to find the easiest way to run it on a Kindle Fire HD table (Android 4.x).
(Chrome is not installed by default and it's not in the App Store for the Kindle)
The Silk…
I feel like maybe something has changed in Chrome as there are demos of this functionality out there that don't seem to work anymore. I haven't found anything saying so though. Here is my code:
navigator.getUserMedia = ( navigator.getUserMedia ||…
I've spent now almost a week trying to play an audio-stream in the browser sent from my java application. Playing a single file is not the problem. What I want to achieve is playing a constant stream (sent in form of byte-array-chunks) from a java…
I have a wav file which with: ffmpeg -i my.wav
Gives the output:
output: Duration: 00:00:12.63, bitrate: 352 kb/s
Stream #0.0: Audio: pcm_s16le, 22050 Hz, 1 channels, s16, 352 kb/s
This is stored as a base64 string in JavaScript loaded in…