Questions tagged [audio]

16116 questions
1

votes
1

answer
248

Views

How to toggle audio play/pause with one button

I never really worked with javascript before, but I tried googling for a solution to how to make a play/pause button for audio - and I found what appears to be a good and simple solution on this site: How to toggle audio play() pause() with one button or link? (PS. I don't have reputation poins enou...
Erica Wyrdling
0

votes
1

answer
15

Views

When I run this code, it just freezes while the audio plays. However, I want an animation to run simultaneously with the audio. How can I do this?

I have been trying to animate a character using Java Swing Graphics. I transition from the main screen to a JPanel that is supposed to display an animation simultaneously while audio (WAV file) runs. However, the audio runs first, and then the JPanel is shown & animated instead. How can I fix this e...
AwesomeGuy
1

votes
1

answer
4.9k

Views

java sound fade out

Using javax.sound.sampled, I want to fade out a sound I started looping infinitely. This is how I started the sound: Clip clip = AudioSystem.getClip(); AudioInputStream inputStream = AudioSystem .getAudioInputStream(new File('x.wav')); clip.open(inputStream); clip.loop(clip.LOOP_CONTINUOUSLY); Could...
Allanrbo
0

votes
1

answer
11

Views

Knowing when I can skip to any point in an audio file without buffering / delay in playback

I'm loading an MP3 on my webpage using audio = new Audio(). But I'd like to know that when setting audio.currentTime, the audio will skip to any point in the file -near the end or wherever -without any delay in playback. Ie I want to know when the MP3 has downloaded in its entirety. Can I use the A...
Dave C
0

votes
0

answer
4

Views

How do convert an audio clip into an array to perform an FFT?

I want to write a program that will read sound files of different instruments playing the same note, and show the different signature frequencies. The library I am using to do so is JTransforms, since it seemed to be the one that was recommended the most to perform FFTs in java. I have not found an...
Saul Van Acker
1

votes
1

answer
2k

Views

iOS - Merge two video into single video file with audio

I want to merge 2 video files with single file with audio. I am able to merge 2 video files, but after merging ouptut video file does not have any audio sound. Even both old video file have proper audio.I have follow this tutorial: https://www.raywenderlich.com/13418/how-to-play-record-edit-videos-i...
Ravi
0

votes
0

answer
6

Views

Magnific Popup Wordpress Audio Shortcode Keeps Playing after Close

I have created an inline popup for my custom Wordpress theme using Magnific Popup and the wp_audio_shortcode() function. It works beautifully, except that the audio keeps playing when I close the popup. (Embedded video stops exactly as expected, which is great!) I read this post magnific-popup, how...
NYCjbd
0

votes
0

answer
12

Views

Why is pygame trying to play a sound that doesn't exist?

I'm developing a game and using the pygame module to run sound. At one point, I included two files, Monster.ogg and woodfrog.ogg, as sound files for various classes. Those files are both absent now, unreferenced in the code and deleted in absolute terms. For some reason, pygame.mixer.Sound keeps ref...
Jake
1

votes
2

answer
998

Views

Spring-MVC : How to stream mp3 file from controller

I am working on a Spring-MVC application in which I am trying to stream mp3 data. Unfortunately, it's directly triggering a download whenever a byte-array of information is sent in response. I found a few other links, but most of them are tied to an user-interface, so not much useful. What are the...
We are Borg
1

votes
2

answer
69

Views

How to update the default song metadata?

I wanted to update the song metadata fields of Track, album, genre, artist and song cover image like Musicmatch. I tried to look for the code to update the meta couldn't find any solutions.
SURYA N
1

votes
3

answer
7.9k

Views

Good Sound processing/Analysis/Capturing Modules [closed]

We are working on Sound processing and Analysis where we need to extract frequencies, pitches, octaves and other parameters of sound including dBPowerSpectrum Analysis. We also need to do this irrespective of the file formats or do the conversion between quite a file format(though conversion is not...
1

votes
3

answer
1.7k

Views

Implementing an OpenFileDialog with sound file preview

I would like to implement an open file dialog or file browser that additionally offers a 'Preview' button to play the currently selected sound file (wave format in particular, other formats are not necessary for this application). I could create my own form with various controls such as a treeview a...
JYelton
1

votes
1

answer
1.4k

Views

Aligning two wav files precisely

I have a tool which compares two audio wav files frame by frame and returns a grade which gives the level of similarity between the two files. I have an original wav file and a recording of the wav file, since the two files are almost similar i should get a high score of similarity, yet i get a poor...
1

votes
5

answer
7.6k

Views

Play/Stop sound from another activity

I have 3 activities. I want to play one background music to all this activity. I made this possible by. Doing this. In activity 1: bgmp = MediaPlayer.create(this, R.raw.menu); bgmp.setLooping(true); bgmp.start(); This will make my music play up to the 3rd acitivity. At activity three. I need to stop...
Luke Villanueva
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

View additional questions