Search results for

“Popping Sound”

20,619 results found

Post

Replies

Boosts

Views

Activity

Best Approach for Reliable Background Audio Playback with Audio Ducking on Command from Server
I am developing an iOS app that needs to play spoken audio on demand from a server, while ducking the audio of background music from another app (e.g., SoundtrackYourBrand or Apple Music). This must work even when the app is in the background, and the server dictates when and what audio is played. Ideally, the message should be played within a minute of the server requesting it. Current Attempt & Observations I initially tried using Firebase Cloud Messaging (FCM) silent notifications to send a URL to an audio file, which the app would then play using AVPlayer. This works consistently when the app is active, but in the background, it only works about 60% of the time. In cases where it fails, iOS ducks the background music (e.g., from SoundtrackYourBrand) but never plays the spoken audio. Interestingly, when I play the audio without enabling audio ducking, it seems to work 100% of the time from my limited testing, even in the background. The app
0
0
547
Feb ’25
Sound emission during an XCUITest
Greetings everyone, part of my XCUITest includes noise recognition and running voice commands. However, I noticed that during my XCUITests on my real device, the sound emission is completely blocked, means that I can't hear or produce any sound while testing. I haven't tested it on any simulator yet, but would need a solution to this issue for my real device testing anyway. Any takes on this? Thanks in advance
0
0
475
May ’23
Detect if audio is playing on macOS
I would like my app to pause currently playing audio (from other applications) for a certain amount of time, and then resume it. I'm able to simulate the pause/play media key, but the problem is if the system is not playing audio, and then I simulate the key press, it starts playing audio, which is a big no no. So I need to detect if there is audio playing. Some things I have explored: kAudioDevicePropertyDeviceIsRunningSomewhere will detect whether is a device running that can play audio, but that doesn't mean it actually is playing audio. AVAudioSession.isOtherAudioPlaying is exactly what I'm looking for, but I'm not working on a Catalyst app, so it's not available to me. I came across this command, but it is not very accurate. If I pause music, it still returns true for the next 30 seconds or so: if [[ $(pmset -g | grep ' sleep') == *coreaudiod* ]]; then echo audio is playing; else echo no audio playing; fi Any ideas?
3
0
2.0k
Apr ’21
Reply to MacOS Big Sur Beta 10 - Youtube in Safari
I have the same problem on Big Sur however the problem has also popped up for me on Catalina and Mojave from time to time over the last few years. I tried disabling vp9 encoding as suggested but it didn't work for me. The solution I have used in the past that worked and seems to always work is to kill the coreaudiod process via Activity Monitor, allow it to automatically relaunch and wait a few minutes. If you kill coreaudiod and then loose all system sound you just need to wait longer and it will return.
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’20
Issue with Applepay pop up addresses Portugal & Romania
We are facing issues with the Apple Pay pop up addresses. So for Portugal and Romania, we would like to collect the user's Province/State as part of the checkout experience. We already do that with other payment methods, however, we noticed Apple Pay pop up doesn't include state/province fields for these two countries, which causes orders to arrive with that field as blank. This is causing a lot of logistics issues during fulfillment. Is there a way to fix this and have the field appear for Portugal and Romania users? Case reference: 102869141084 Thank you!
1
0
356
May ’26
Playing Video (with audio; from asset) and recording video and audio (from front camera)?
Hi, I do not know if is this possible, but I have problem to achieve this. I have UIView (VideoView) who has AVPlayerLayer, and plays some video from assets, and have own audio. Over this view, have another (smaller) UIView (CameraView) who have: AVCaptureVideoPreviewLayer (show front camera) AVCaptureSession AVCaptureDevice AVAudioSession to show preview of user front camera and record audio & video from self. And run in same time. Similar to FaceTime Call. AVAudioSession in CameraView is set up something like this: let audioSession = AVAudioSession.sharedInstance() do { if #available(iOS 11.0, *) { try audioSession.setCategory(.playAndRecord, mode: .spokenAudio, policy: AVAudioSession.RouteSharingPolicy.default, options: [.duckOthers]) } else { try audioSession.setCategory(.playAndRecord, mode: .spokenAudio) } try audioSession.setActive(true) } catch let error { print(Audio setup error, #file, #function, #line, error.localizedDescription) } But still, I have some kind of echo
0
0
722
Aug ’20
Inter-app audio replacement?
I have one iOS app that is an iPad touchscreen virtual musical instrument. I have another app that is an audio visualizer (36-th octave spectrum analyzer). I used to use inter-app audio to pipe audio samples from the first app to either the second app, or to GarageBand for recording. But inter-app audio has been deprecated. My question is what is Apple's suggested method (API's etc.) to get audio samples generated in one UI app to play and display in another UI app (say on an iPad, where both apps can be on the display) in performance-near-real-time without using inter-app audio?
1
0
1.2k
Jun ’20
Playing a sound effect before record video makes video's sound volume is low
I am using AudioService API to play a sound effect before start video recoding, I found a weird thing that the final result video's volume is relative to sound effect volume. if sound effect volume is big, the final video's volume became so low, if sound effect volume is quite, final video's volume is big. I think the iphone's microphone or audio framework make this, maybe it detected the peak volume and balance audio record volume. I use 'playAndRecord' to record video, dosen't change it when play sound effect. need help to slove this issue, i want the video's volume is constants
0
0
835
Aug ’22
Does DriverKit currently offers audio-related APIs instead of IOKit's audio APIs?
According to Information in 2019wwdc, macOS 10.15 will be the last release to fully support kextsso,I'm trying to convert the virtual audio driver (kext) developed by IOKit into a dext developed by DriverKit,but I can't find audio driver in the DriverKit description document.Question1Does DriverKit currently offers audio-related APIs instead of IOKit's audio APIs? (e.g., IOAudioDevice.h, IOAudioEngine.h)If DriverKit offers audio-related APIs,give it's link for meQuestion2If DriverKit currently doesn't offer audio-related APIs instead of IOKit's audio APIsCan MacOS 10.16 or later support virtual audio driver(kext) to load?From the following information, I think the answer is no.================================================================================Information in 2019wwdc:macOS 10.15 will be the last release to fully support kexts without compromisesFor the capabilities and device families supported by System Extensions, using aKer
2
0
1.7k
May ’20
Audio problem in VoIP App
Hi,Our VoIP App was fully tested and working fine on iOS 8 for Incoming and outgoing calls.When iOS 9.0.1 was installed on iphone 4 and 6, Audio sound quality of outgoing call part was NOT understandable.After we upgraded our VoIP app, using XCode 7.0 we recompiled our code with no error or warnings yet the audio quality problem in outgoing call still exists.Without any error or warnings, can you inform us of what changes in “Audio” that might affect this ?Our App is using following iOS Audio Frameworks1- AV Foundation framework2- Audio ToolKit framework3- Core Audio frameworkAdditionally, we use GSM Codec for our VoIP calls.Any ideas on how can we progress to a satisfactory solution?Thanks and RegardsMajid Hameed Khan
2
0
484
Oct ’15
RPScreenRecorder audio session
Can't record audio properly. What should be the mode, category, and category option shall my app be (btw app is a conference call)
Replies
0
Boosts
0
Views
516
Activity
Nov ’20
Best Approach for Reliable Background Audio Playback with Audio Ducking on Command from Server
I am developing an iOS app that needs to play spoken audio on demand from a server, while ducking the audio of background music from another app (e.g., SoundtrackYourBrand or Apple Music). This must work even when the app is in the background, and the server dictates when and what audio is played. Ideally, the message should be played within a minute of the server requesting it. Current Attempt & Observations I initially tried using Firebase Cloud Messaging (FCM) silent notifications to send a URL to an audio file, which the app would then play using AVPlayer. This works consistently when the app is active, but in the background, it only works about 60% of the time. In cases where it fails, iOS ducks the background music (e.g., from SoundtrackYourBrand) but never plays the spoken audio. Interestingly, when I play the audio without enabling audio ducking, it seems to work 100% of the time from my limited testing, even in the background. The app
Replies
0
Boosts
0
Views
547
Activity
Feb ’25
Sound emission during an XCUITest
Greetings everyone, part of my XCUITest includes noise recognition and running voice commands. However, I noticed that during my XCUITests on my real device, the sound emission is completely blocked, means that I can't hear or produce any sound while testing. I haven't tested it on any simulator yet, but would need a solution to this issue for my real device testing anyway. Any takes on this? Thanks in advance
Replies
0
Boosts
0
Views
475
Activity
May ’23
Direction audio is coming from
Is it possible to determine from what side of the device (front, back, left, right) the audio is coming from?
Replies
5
Boosts
0
Views
1.9k
Activity
Jun ’20
Detect if audio is playing on macOS
I would like my app to pause currently playing audio (from other applications) for a certain amount of time, and then resume it. I'm able to simulate the pause/play media key, but the problem is if the system is not playing audio, and then I simulate the key press, it starts playing audio, which is a big no no. So I need to detect if there is audio playing. Some things I have explored: kAudioDevicePropertyDeviceIsRunningSomewhere will detect whether is a device running that can play audio, but that doesn't mean it actually is playing audio. AVAudioSession.isOtherAudioPlaying is exactly what I'm looking for, but I'm not working on a Catalyst app, so it's not available to me. I came across this command, but it is not very accurate. If I pause music, it still returns true for the next 30 seconds or so: if [[ $(pmset -g | grep ' sleep') == *coreaudiod* ]]; then echo audio is playing; else echo no audio playing; fi Any ideas?
Replies
3
Boosts
0
Views
2.0k
Activity
Apr ’21
Reply to MacOS Big Sur Beta 10 - Youtube in Safari
I have the same problem on Big Sur however the problem has also popped up for me on Catalina and Mojave from time to time over the last few years. I tried disabling vp9 encoding as suggested but it didn't work for me. The solution I have used in the past that worked and seems to always work is to kill the coreaudiod process via Activity Monitor, allow it to automatically relaunch and wait a few minutes. If you kill coreaudiod and then loose all system sound you just need to wait longer and it will return.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’20
CMAudioClock for audio input on iOS
On iOS, I don't see a way to create a CMClock that is synchronised to Audio input source currently in use by RemoteIO unit, API is only for Audio output. Is there a way to access the audio clock for RemoteIO unit?
Replies
0
Boosts
0
Views
300
Activity
Jun ’20
Issue with Applepay pop up addresses Portugal & Romania
We are facing issues with the Apple Pay pop up addresses. So for Portugal and Romania, we would like to collect the user's Province/State as part of the checkout experience. We already do that with other payment methods, however, we noticed Apple Pay pop up doesn't include state/province fields for these two countries, which causes orders to arrive with that field as blank. This is causing a lot of logistics issues during fulfillment. Is there a way to fix this and have the field appear for Portugal and Romania users? Case reference: 102869141084 Thank you!
Replies
1
Boosts
0
Views
356
Activity
May ’26
Playing Video (with audio; from asset) and recording video and audio (from front camera)?
Hi, I do not know if is this possible, but I have problem to achieve this. I have UIView (VideoView) who has AVPlayerLayer, and plays some video from assets, and have own audio. Over this view, have another (smaller) UIView (CameraView) who have: AVCaptureVideoPreviewLayer (show front camera) AVCaptureSession AVCaptureDevice AVAudioSession to show preview of user front camera and record audio & video from self. And run in same time. Similar to FaceTime Call. AVAudioSession in CameraView is set up something like this: let audioSession = AVAudioSession.sharedInstance() do { if #available(iOS 11.0, *) { try audioSession.setCategory(.playAndRecord, mode: .spokenAudio, policy: AVAudioSession.RouteSharingPolicy.default, options: [.duckOthers]) } else { try audioSession.setCategory(.playAndRecord, mode: .spokenAudio) } try audioSession.setActive(true) } catch let error { print(Audio setup error, #file, #function, #line, error.localizedDescription) } But still, I have some kind of echo
Replies
0
Boosts
0
Views
722
Activity
Aug ’20
Inter-app audio replacement?
I have one iOS app that is an iPad touchscreen virtual musical instrument. I have another app that is an audio visualizer (36-th octave spectrum analyzer). I used to use inter-app audio to pipe audio samples from the first app to either the second app, or to GarageBand for recording. But inter-app audio has been deprecated. My question is what is Apple's suggested method (API's etc.) to get audio samples generated in one UI app to play and display in another UI app (say on an iPad, where both apps can be on the display) in performance-near-real-time without using inter-app audio?
Replies
1
Boosts
0
Views
1.2k
Activity
Jun ’20
Sound only incall
speakers sound works only for call them incoming not for sms or mail vidéo music...
Replies
0
Boosts
0
Views
92
Activity
Aug ’16
Playing a sound effect before record video makes video's sound volume is low
I am using AudioService API to play a sound effect before start video recoding, I found a weird thing that the final result video's volume is relative to sound effect volume. if sound effect volume is big, the final video's volume became so low, if sound effect volume is quite, final video's volume is big. I think the iphone's microphone or audio framework make this, maybe it detected the peak volume and balance audio record volume. I use 'playAndRecord' to record video, dosen't change it when play sound effect. need help to slove this issue, i want the video's volume is constants
Replies
0
Boosts
0
Views
835
Activity
Aug ’22
Does DriverKit currently offers audio-related APIs instead of IOKit's audio APIs?
According to Information in 2019wwdc, macOS 10.15 will be the last release to fully support kextsso,I'm trying to convert the virtual audio driver (kext) developed by IOKit into a dext developed by DriverKit,but I can't find audio driver in the DriverKit description document.Question1Does DriverKit currently offers audio-related APIs instead of IOKit's audio APIs? (e.g., IOAudioDevice.h, IOAudioEngine.h)If DriverKit offers audio-related APIs,give it's link for meQuestion2If DriverKit currently doesn't offer audio-related APIs instead of IOKit's audio APIsCan MacOS 10.16 or later support virtual audio driver(kext) to load?From the following information, I think the answer is no.================================================================================Information in 2019wwdc:macOS 10.15 will be the last release to fully support kexts without compromisesFor the capabilities and device families supported by System Extensions, using aKer
Replies
2
Boosts
0
Views
1.7k
Activity
May ’20
Audio problem in VoIP App
Hi,Our VoIP App was fully tested and working fine on iOS 8 for Incoming and outgoing calls.When iOS 9.0.1 was installed on iphone 4 and 6, Audio sound quality of outgoing call part was NOT understandable.After we upgraded our VoIP app, using XCode 7.0 we recompiled our code with no error or warnings yet the audio quality problem in outgoing call still exists.Without any error or warnings, can you inform us of what changes in “Audio” that might affect this ?Our App is using following iOS Audio Frameworks1- AV Foundation framework2- Audio ToolKit framework3- Core Audio frameworkAdditionally, we use GSM Codec for our VoIP calls.Any ideas on how can we progress to a satisfactory solution?Thanks and RegardsMajid Hameed Khan
Replies
2
Boosts
0
Views
484
Activity
Oct ’15
UIImagePickerController lost Audio
some downloaded video, edited in photo album. when choose it in UIimagePickerController, the result Video lose audio! BUT,if not edit in album,it's correct!
Replies
0
Boosts
0
Views
451
Activity
Mar ’23