Questions tagged [avaudiosession]

This class provides an Objective-C alternative to many features from the C-based Audio Session Services.

AVAudioSession classs reference

1047 questions
0
votes
1 answer

How to reduce the avaudio recording file when recording for long time about an hour?

Description of problem: When i record an audio file for the time interval about 1 hours i get its size around 600MB so its to big I want that it should be compressed to les size but how i don`t know....? Reasong for doing compression is that it…
Himanshu Agnihotri
  • 2,360
  • 4
  • 23
  • 30
-1
votes
1 answer

Keep recording audio while navigating to another screen

I want to continue an AVAudioSession that I started in one screen to (recording using AVAudioRecorder) while navigating to another screen and back. Is that possible? Because I am always getting a shorter file. session start / recording start func…
Nevgauker
  • 241
  • 1
  • 12
-1
votes
1 answer

Swift 4 / Xcode 9.2 - Audio Player

For playing back audio I went through a bigger post here. Resulting in the best version now, but: try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default) does not work, giving a String member error on .playback. Here´s…
SoTm
  • 807
  • 1
  • 7
  • 10
-1
votes
2 answers

Chirp Audio QR Fails to receive audio signals on ipad after resuming from background

Chirp audio QR frame work is not receiving data after resuming from background (This issue is only happening on iPAD devices iOS11+) If the app is in foreground then framework works without having any issues, but if app goes background and then…
Adarsh
  • 89
  • 4
  • 14
-1
votes
3 answers

How to disable user Interaction during AVAudioSession

I am currently working on a method that will play a mp4 file when called. However, while the mp4 file is being played I want user interactions to be disabled. This is so that the user cannot tap the screen while the mp4 is playing and start the…
Anthony Rubin
  • 69
  • 1
  • 1
  • 14
-1
votes
1 answer

Play some sound in background, some sound only in foreground

I want to play sound in background for a feature but I want to play sound only in foreground for another feature. Also, I want to play sound even when the silent switch is turned on. To play sound in background, the following 2 code is…
user_
  • 852
  • 7
  • 23
-1
votes
1 answer

Unity doesn't work with Microsoft cognitive SpeechToText iOS SDK

I am using Unity 5.3 and the latest MS STT iOS SDK. If I set UnitySetAudioSessionActive(1), the MS STT will give me an error status - SpeechClientStatus_MicrophoneUnavailable at the second time when I invoke the speech recognition. The reason that…
-1
votes
1 answer

Core Audio's render callback does not change output audio

Somehow I cannot change the output or mute it using the render callback when using core audio. Here is my IO initializing function: - (void)setupIOUnit { // Create a new instance of AURemoteIO AudioComponentDescription desc; …
Bowen Su
  • 1,219
  • 3
  • 13
  • 15
-1
votes
1 answer

Access audio data for particular device (AVAudioSession)

I am using AVAudioSession and I know this sounds like insanity maybe but is there any way to access the input and output data for a microphone or speaker? For example, I want to print out all the audio data streaming into the microphone in…
Bowen Su
  • 1,219
  • 3
  • 13
  • 15
-2
votes
1 answer

Swift detect properties of Other Audio with AVAudioSession

AVAudioSession provides an isOtherAudioPlaying property to determine if another app is playing audio. Is there any way to determine properties of this background audio signal (the audio data itself, volume levels, etc.) through this API or is this…
Evan Kaminsky
  • 695
  • 10
  • 23
-2
votes
1 answer

incompatible pointer types sending "NSString" to parameter of type 'AVAudioSessionPortDescription*

Trying to use only builtIn iPhone MIC for my app. - (BOOL)setPreferredInput:(AVAudioSessionPortDescription *)inPort error:(NSError **)outError NS_AVAILABLE_IOS(7_0); { NSError* audioError = nil; AVAudioSession* myAudioSession = [AVAudioSession…
Aman
  • 3
  • 2
-3
votes
1 answer

Hide red bar while recording in background

My app keeps listening to voices and analysis them to detect real panic screams. So I want to keep the app running 24/7, but when my app goes in background, the red bar appears on top. Since the recording has to be running for longer period, my app…
Chanchal Raj
  • 4,176
  • 4
  • 39
  • 46
1 2 3
69
70