Questions tagged [avaudiofile]

65 questions
0
votes
1 answer

how to save and share the proccessed audio in swift?

I'm trying to modify an iOS app that takes audio via text to speech and applies pitch and rate changes to it, and then allows the user to save and share the processed audio. The recording and processing parts work fine, but I'm having trouble with…
0
votes
1 answer

ValueError:The requested array has an inhomogeneous shape after 2 dimensions.The detected shape was(318, 20)+inhomogeneous part

from sklearn.neural_network import MLPClassifier #Initialise Multi Layer Perceptron Classifier (MLP) model = MLPClassifier(alpha = 0.01, batch_size = 256, epsilon = 1e-08, hidden_layer_sizes = (400,), learning_rate = 'adaptive', max_iter =…
0
votes
0 answers

using Gstreamer i am loopback the dmic to speaker the sound is good but when i recorded that mic and play that time sound is not good

i am using gst-launch 1.0 i wanted to record raw file using the gstreamer and also wanted to play raw file using gstreamer. put the command using which i am testing the dmic. if i recorded file in 1x speed but when i play it plays in 0.25x…
0
votes
0 answers

How can I parse/read, not play, an audio file in Swift based on its formatting?

My app already finds silence in audio as it is being recorded on an iOS device. I compare background and speaking volumes from samples then compare it and so far it has been pretty accurate. This way I save the audio into smaller multiple files, yet…
Bartender1382
  • 195
  • 1
  • 10
0
votes
0 answers

I have an error with this : Thread 1: EXC_BAD_ACCESS (code=1, address=0x18) I don't know if the nil value is because the recording is faulty

This is my code use AVAudioEngine for change voice in my app. Can anyone point out what's wrong in this code of mine and help me get rid of the error message? extension AudioPlayer { func setupAudio(){ // initialize (recording) audio…
0
votes
1 answer

My writing the installTap buffer to an AVAudioFile seems to fail data-wise

I am trying to save the buffer from my installTap to a file. I do it in chunks of 10 so I'll get a bigger file. When I try to play the written file (from the simulator's directory) QuickTime says that it's not compatible. I have examined the bad m4a…
0
votes
1 answer

Get samples of audio clip in AVAudioPlayer?

Is there a property on the AVAudioPlayer class that I can use to get the samples? If not is there another class I can use to get this information? Here's what I have: var openDialog = NSOpenPanel.OpenPanel; openDialog.CanChooseFiles =…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
0
votes
1 answer

AVAudio and Offline Manual Rendering Mode - can't write buffers of higher frequencies into output file

I'm reading an input file and with the offline manual rendering mode, I want to perform amplitude modulation and to write the result to an output file. For the sake of testing, I produce pure sine waves - this works well for frequencies lower than…
0
votes
0 answers

How to write to an AMR-WB file in multichannel mode with Python under linux from RTP PAYLOAD

I've successfully written the RTP-payload into an amr-file and it works fine, according to the answer written in this question. https://stackoverflow.com/questions/61961965/convert-rtp-payload-payload-type-107-amr-wb-16khz-1channel-to-wav Now I…
Uwe_98
  • 697
  • 1
  • 8
  • 21
0
votes
1 answer

Audio from a file generated from an AVAudioEngine bus tap has different speed than the one played on device output

I am generating audio with an AVAudioEngine. I am then installing a tap on the mainMixerNode output of the engine which provides a AVAudioPCMBuffer which is then written into an MPEG4ACC AVAudioFile. The issue I have is that the audio played on the…
0
votes
1 answer

How to add observer to play and pause actions for audio file in WKWebview?

I want to add notifications for play and pause actions of audio file in wkwebview, Image shows how audio files are in WKWebview
Sreekanth M
  • 151
  • 1
  • 6
0
votes
1 answer

Play an audio file using Swift for MacOS

I'm trying to simply play a file (in the main bundle or on the disk) using AVAudioFile, AVAudioEngine and AVAudioPlayerNode. Here is what I'm doing: import Foundation import AppKit import AudioToolbox import AVFoundation struct readFile { …
pm200107
  • 303
  • 1
  • 11
0
votes
1 answer

Play audio from float arrays iOS Swift

I have 2 float arrays one representing the left channel values and the other representing the right channel values. How can I create and play music from these two arrays?(Sample Rate = 44100) TIA
0
votes
0 answers

How to read an AVAudioFile into the same AVAudioPCMBuffer multiple times?

EDIT: I was able to prevent readIntoBuffer from returning false by adding audioFileB.framePosition = 0; at the end of my for loop. However, now it looks like bufferB only contains audio from the final readIntoBuffer call (my incomplete loop). Does…
WongWray
  • 2,414
  • 1
  • 20
  • 25
0
votes
1 answer

How can I play multiple different audio files from same AVAudioEngine? (Error: !nodeimpl->HasEngineImpl())

In my app I want to play a different audio file every time a different cell in the table view is pressed. Below is my implementation but I keep receiving the error: Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason:…
D.Khan
  • 163
  • 3
  • 17