Questions tagged [audio]

16102 questions
1

votes
0

answer
48

Views

HTML5 audio file loads only partially or in chunks

I have incorporated a playlist into a HTML page much along the lines of http://devblog.lastrose.com/html5-audio-video-playlist/. The actual playing of tracks is achieved via player.load(); player.play(); Every now and then, a sound file will play only partially. Tracking that problem with several br...
TAM
1

votes
1

answer
91

Views

Apply Hamming followed by FFT of wav file in Java

I am trying to perform hamming followed by FFT of a wav file. I have implemented the same in python. How to do this in Java. I have applied hamming on the given wave file which returns a bytearrayOutputStream. Now how to perform FFT over this byteArrayOutputStream? I am new to audio processing. My...
Prateek Ratnaker
1

votes
1

answer
191

Views

problems with minim and processing

trying to create a sound sampler that can play a recorded sample at different frequencies/rates and am using TickRate to change the rate of playback, similar to the TickRate example. when i run i get a NullPointerException here player.patch(rateControl).patch(out); but can't figure out why, any idea...
michael doherty
1

votes
0

answer
110

Views

How to achieve metering with AVPlayer in ios?

AVAudioPlayer provides metering. We can enable it by setting true to the property isMeteringEnabled. And then call updateMeters method to update the values to get a particle effect music visualizer as explained in th link given below: https://www.raywenderlich.com/36475/how-to-make-a-music-visualize...
Rahul Gupta
1

votes
0

answer
232

Views

Querying output media devices (with labels) impossible on a machine with no input media devices?

I need to list the available audio output options on the user's machine. For this, the MediaDevices.enumerateDevices method can be used, which returns a Promise of an array of MediaDeviceInfo elements: let devices = await navigator.mediaDevices.enumerateDevices(); Now I need to display a selection d...
John Weisz
1

votes
0

answer
89

Views

GStreamer IOS : Running audio and video pipeline togethere get a bad access crash

I have integrated GStreamer library 1.12.2 version in my ios application that supports audio and video streaming through raspberry pi device . Functionality that has been implemeted is as follows: 1. Video streaming has to run all time in my application once the application is launched and on main s...
Parul Jain
1

votes
1

answer
61

Views

Can I use javascript to retrieve the content header when setting the src on audio

I'm using the HTML5 audio control to play an mp3 file that is streaming from the server: And I am setting the src of that audio control dynamically, when a user clicks a button: $('#myBtn').on('click', function (e) { var audio = document.getElementById('audio'); audio.src = '/api/audio/f56i4gi8lh';...
Matt Spinks
1

votes
0

answer
55

Views

Tensorboard exception with summary.image of shape [-1, 125, 128, 1] of MFCCs

Following this guide, I'm converting a tensor [batch_size, 16000, 1] to an MFCC using the method described in the link: def gen_spectrogram(wav, sr=16000): # A 1024-point STFT with frames of 64 ms and 75% overlap. stfts = tf.contrib.signal.stft(wav, frame_length=1024, frame_step=256, fft_length=1024...
rodrigo-silveira
1

votes
0

answer
742

Views

Unbinding and rebinding a Linux device driver

I'm currently fighting with a buggy hardware device under Linux. The device provides a series of interface endpoints. From what I can tell if I can configure the alternateSetting of a couple of these endpoints to their other modes then the device should behave properly. This functionality appears to...
Luke
1

votes
0

answer
72

Views

Using AVAudioUnitSampler as Audio Unit v3 Extension – distorted sound

I have a music app that uses AVAudioUnitSampler to generate sounds. I'm trying to make an Audio Unit Extension, so my app will be able to be used in a host apps like Garage Band. I implement AUViewController and return underlying AVAudioUnitSampler's audioUnit in createAudioUnit(with:) method like t...
Pavel Alexeev
1

votes
0

answer
407

Views

macOS High Sierra Edit Kext

A while ago I was digging around in the kexts provided with macOS High Sierra, specifically AppleHDA.kext. The audio driver appears to implement a DSP chain with some rather complicated signal processing going on. In particular, there is a great deal of dynamic range compression applied to the outpu...
Larry Chen
1

votes
0

answer
62

Views

Why is played sound distorted in R with package audio?

I have quite some experience in coding in R, however I am fairly new to using audio processing methods in R. To play a wav-file in R, I have found multiple packages that could help me (tuneR, audio, signal, seewaveIO). Because the package audio has some methods that I also need to use, I want to use...
AES
1

votes
0

answer
262

Views

Download audio file using sftp in node

What I am trying to do is click a link and when I do, it connects to my server and downloads the audio file available from the browser. I was able to connect to my server and download the .wav file. But when I try to open the audio files with windows media player I get a error: Windows Media Player...
carlos E.
1

votes
0

answer
132

Views

augment the sound wav file

when I extract the x_train from some wav file path new_sample_rate = 8000 y_train = [] x_train = [] for label, fname in zip(labels, fnames): sample_rate, samples = wavfile.read(os.path.join(train_data_path, label, fname)) #print(label ,fname) samples = pad_audio(samples) if len(samples) > 16000: #p...
kim sangwon
1

votes
0

answer
766

Views

Produce unhearably high-frequency sound on an iPhone

I'd like to produce some kind of very high-frequency sound on my iPhone/iPad devices, but how is it possible to produce ultrasonic sound with a specific frequency given in HZ? I found just some outdated information like Produce ultrasonic sound on an iOS device https://gist.github.com/hotpaw2/630a4...
Jonas0000
1

votes
0

answer
900

Views

Python | librosa: how to extract human voice from an audio wav file?

Given a wav file (mono 16KHz sampling rate) of an audio recording of a human talking, is there a way to extract just the voice, thereby filtering out most mechanical and background noise? I'm trying to use librosa package in Python 3.6 for this, but can't figure out how piptrack works (or if there i...
Oleg Melnikov
1

votes
0

answer
198

Views

How to Convert base64 of wav or webm to aac base64 in Javascript

I am trying to record an audio and store it in blob. I am using RecordRTC library for this. I am getting audio in Wav or webm format. We have an app in which we have recorded and posted in .aac format. I have tested recording same audio in app and web application. size of audio file varies by 5 to...
Kireeti Ganisetti
1

votes
0

answer
98

Views

Merge video files, in which one of them has no audio track using mp4parser

I want to merge some video files using mp4parser, in which any one of them may not have audio track. Currently, if i merge these files, audio is moving into another segment, which is wrong. This is how, i am merging files LinkedList videoTracks = new LinkedList(); LinkedList audioTracks = new Linked...
Manish Kumar
1

votes
0

answer
230

Views

AudioKit - audio engine configuration changes periodically

I have an app that uses samplers to play loops. I am in the process of converting my app from using AVAudioEngine to AudioKit. My app now works well except for this: Approximately every 1-3 minutes, my app receives two .AVAudioEngineConfigurationChange notifications in a row. There is no apparent pa...
Ryan Robinson
1

votes
0

answer
131

Views

“Saving audio to …@gmail.com” toast when using RecognizerIntent.ACTION_RECOGNIZE_SPEECH

I am using the RecognizerIntent.ACTION_RECOGNIZE_SPEECH to capture audio using the following code: public void promptSpeechInput() { if (checkAudioPermission()) { Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIn...
Nikhil Tambe
1

votes
1

answer
1.1k

Views

Changing WAV format from 32-bit floating point to 16 bit PCM

I'm trying to convert my 32-bit floating point sampled WAVE file to 16-bit integer WAVE file. I want to generate 16-bit integer WAV file from ultrasonic sine wave which range from -1.414 to 1.414. In SciPy.io.wavfile, the output format is fixed according to type array which I generated. But I chang...
JayHeo
1

votes
0

answer
43

Views

Silence detection while recording in JavaFX

I'm desperately trying to detect silence when recording on my JavaFX application. I'm using JavaSound API to record audio files. Does someone has suggestions? Hoping someone will reply soon, thanks in advance!
Daniela Favia
1

votes
3

answer
174

Views

Javascript play sound after delay

I have made a stopwatch in javascript which accepts start time from get parameters. Everything is working but I would like to play a sound 3 seconds before end. SO far I have this: HTML:
DeiForm
1

votes
0

answer
25

Views

Amazon LEX control audio playback time

I have built an amazon LEX based chatbot, that will respond to users' queries on a certain topic (not disclosed). Since some of the responses are big (maybe over 500 words, it is very ungainly to playback entire audio), I would like to control the length of the audio playback from LEX. In other word...
Arun S
1

votes
0

answer
489

Views

Blob Url for Audio Element Source

I need to use a blob url for the audio element source, and it is not working on Edge or Safari; however it works in Chrome and Firefox. So basically something like this: is not working on Safari or Edge. Any workarounds? You can also check this fiddle for example and try it different browsers: https...
VMh
1

votes
2

answer
108

Views

AudioKit AKSequencer does not loop on iOS 10

The following code plays multiple audio files in a loop in iOS 11 but not in iOS 10. Seems like that AKSequencer cannot loop in iOS 10? let mixer = AKMixer() var sequencer: AKSequencer = AKSequencer() sequencer.loadMIDIFile(fromUrl: URL(fileURLWithPath: midiFile)) for index in 0..
abinop
1

votes
2

answer
1.3k

Views

How to Setup Icecast2 Mountpoints?

I was able to setup my icecast2 server in Ubuntu 16.04 (AWS). I can load the admin in icecast2. My problem is, the documentation of icecast2 isn't clear enough for first timers like me on how to setup the mountpoints which is the very essential element of this streaming server since end-users connec...
user3807803
1

votes
1

answer
140

Views

AVAudioPlayer not playing sound from temp file path

I have saved a recording to my Temp directory and can verify this using iExplorer The file path structure is TempFolder/UserID/SoundName001.wav The bit I save to the database is UserID/SoundName001.wav Here is the code I use to play the file @property (nonatomic, strong) AVAudioPlayer *player; -(voi...
Niall Kiddle
1

votes
0

answer
18

Views

Android: How to manipulate the sound of the whole device?

I'm trying to create a small equalizer-app for my android device, so I need to manipulate the sound of the whole device. Is this possible ? Or do the users of my app need root? Can I manipulate the sound of specific applications only?
JavaProgrammer.002
1

votes
0

answer
46

Views

How to simultaneously play two PCM audio streams in one DMA

I am working on a project on the stm32f769i-disco board, which has to run a video game made by me. The graphical part is solved, where I have problems is when I need to play two or more wav files, I do not know which is the correct way to add them in a single stream. What is the algorithm that I mus...
Argonarh CIrith
1

votes
0

answer
81

Views

Is there a way to get Mel-frequency cepstrum coefficients of a track from the Spotify API?

I am looking to get the MFCC(Mel-frequency cepstrum coefficients) of a spotify track. My main aim is to identify genre of a track, and the algorithm which I'm studying right now uses MFCC to extract features of a track. I think there might be 2 ways to do this: Spotify's API has an endpoint called h...
Karan
1

votes
1

answer
542

Views

How to play the next song in file after the song is finished automatically using pygame

I'm making a music player using pygame. But I cannot understand how to play the next song automatically after the previous song is finished. My program is reading all mp3 files in a selected folder first. Can you tell me how to do it? import tkinter.filedialog as filedialog import os import pygame d...
1

votes
1

answer
38

Views

JQuery Get/Set currentTime “Radio Stations”

The effect I'm trying to achieve is that hovering on certain icons will play certain audio files. When you switch icons the new audio plays from the exact time that the last audio left off--this is supposed to be like you're changing channels on the radio. The code below works, but only between two...
jehm
1

votes
1

answer
437

Views

How to resample audio file using Tensorflow API

I'm using tf.data.Dataset as pipeline in tensorflow to read and transform audio. I wanted to add audio resampling to reduce overfitting. I googled for a way to resample files in python/tensorflow and I found python only solutions like resampy. It works great but it slows down my pipline 10 times as...
Piotr Czapla
1

votes
0

answer
151

Views

decodeAudioData example does not work on Safari

I tried to use decodeAudioData on Safari but failed. Searching for a solution I found that even https://mdn.github.io/webaudio-examples/decode-audio-data/ does not work on safari (Version 11.0.2 (11604.4.7.1.6) on OSX 10.11.6) For details see https://github.com/mdn/webaudio-examples/issues/5 Is ther...
Bernhard
1

votes
1

answer
131

Views

Controlled pitch or frequency shifting in Unity3d

TL;DR - I'm looking for a plugin or technique to pitch shift audio assets precisely. I'm working on a unity3d project to create a binaural VR music visualizer (why I'm trying). I've created a basic visualizer and the music player components pretty easily with tutorials online but I'd like to find an...
Drew Lion
1

votes
1

answer
811

Views

Live streaming audio with WebRTC browser => server

I'm trying to sent some audio stream from my browser to some server(udp, also try websockets). I'm recording audio stream with webrtc , but I have problems with transmitting data from a nodeJS client to the my server. Any idea? is it possible to send audio stream to the server using webrtc(openwebrt...
Lola_Padilya
1

votes
1

answer
43

Views

Select last connected audio source android

How can I automatically connect to the last connected audio source in Android? We are building a video doorbell app, now instead of giving the user option to select audio output our UI/UX team asked us to hardcode selecting to the last selected audio source. Ex: If a bluetooth is connected I have to...
Adithya.K
1

votes
1

answer
127

Views

Using MPNowPlayingInfoCenter without actually playing audio

I am trying to build an iOS app which controls a music player which runs on a seperate machine. I would like to use the MPNowPlayingInfoCenter for inspecting and controlling this player. As far as I can tell so far, the app actually has to output audio for this to work (see also this answer). Howeve...
Chris Brandhorst
1

votes
0

answer
47

Views

Connecting a convolverNode to a userGetMedia input--(Web Audio API)+audio tag

I am trying to understand the Web Audio API and need some help. I want to connect a convolverNode to a live recorded clip The following code interacts with the html play and stop button and input tag with type='range' it adds reverb and works perfectly. var context = new (window.AudioContext || win...
AtomisedClarity

View additional questions