Sound and Haptics

RSS for tag

Create meaningful and delightful experiences that engage a wider range of senses with sound and haptic design.

Posts under Sound and Haptics tag

83 Posts

Post

Replies

Boosts

Views

Activity

iphone 14 Pro Max running iOS 16.5 Does not make a sound when receiving a text.
iPhone 14 Pro Max running iOS 16.5 Bought May 23rd 2023, USA to upgrade Does not make a sound when receiving a text. However, it will ring when receiving a phone call. I have tried turn blue tooth off, reboot IPhone, turn blue tooth back on it lasts for a day then back to no sound when I receive a text. Why? Any help would be greatly appreciated. I have tried everything I could find on google, reddit changing the sound turning on notifications if you could think of it I have more than likely tried it. Yes, I have a apple watch. That's why the blue tooth is on. But please give me some suggestions, or is this known about, and they will put a fix in the next update? I have searched till my eyes fell out.
1
0
845
Jun ’23
How to detect touch pressure in a post-3D Touch world?
Hi all, I'm working on an iOS app that takes a user's input via touch and returns audio and haptic feedback relative to how hard the user touches the screen (i.e., the harder the user touches the screen, the louder the volume and stronger the haptic response will be). The problem is that the tracking of pressure sensitivity only seems to be available on iOS devices with 3D Touch functionality, which Apple discontinued in 2019-2020 in favor of the much simpler Haptic Touch functionality, which does not appear to offer dynamic tracking of touch inputs. How does this affect my users? Well, those who have an older iPhone between 6s and 11 (excluding SE and XR) will have access to a fully functional immersive environment that provides dynamic audio and haptic responses based on the pressure of their touch inputs - exactly as intended. Unfortunately, the majority of my users who use an iPhone 12 or above will be left with a static environment that provides the same audio and haptic response regardless of the pressure of their touch inputs. Ironically, users with old iPhones will have full access to my app's functionality, while users with new iPhones will be excluded from the experience that I wish to provide. As a developer who is passionate about providing dynamic and immersive experiences to more than a subset of his users, Apple's dropping of 3D Touch for Haptic Touch feels like a massive downgrade in terms of functionality and performance. Is there any way to bypass the limitations of the new Haptic Touch iPhones so that I can record touch pressure sensitivity and provide new iPhone users with the same dynamic experience that old iPhone users enjoy?
0
1
1.5k
Jun ’23
Prevent sound from playing via Bluetooth if mute switch is active
I'm writing an app in which I have a sound being played whenever a particular action occurs. During testing I noticed that this sounds will always be heard if my phone is connected to a Bluetooth speaker even if the mute switch is active. Is there a way to prevent this? I feel like my app should respect the mute switch in this case. If I am not connected to the Bluetooth speaker everything works as expected.
1
1
1.1k
May ’23
App with haptics crashes on iPhone6
We added haptics to our app. Great feature, but we are now receiving complaints from users with the iPhone6 that the app is crashing. Looking for a way to avoid crashes on unsupported devices. If we default the use of haptics to "off" can we avoid the crashes? Or is this crash going to happen simply by having haptics in the app. I am not the programmer. I am a developer on the project.
1
0
781
May ’23
Apple watch series 8 haptic won't work
I have bought apple watch series 8 yesterday and I realized that it's haptic vibration does not work. Every settings seems to be right. I don't know what is the problem. I searched a lot on the web and tested almost every possible OS solutions but none of them helped me. May be a hardware problem? Could anyone help me to solve this problem? Watch os version is 9.4(latest version at this time)
2
0
1.2k
Apr ’23
Bundle.main.url(forResource: sound, withExtension: "wav", subdirectory: "Resources/Sounds") returns nil
Hi everyone, I'm trying to play sounds in my playground, but whenever I try to get the path, nothing comes out. I've tried everything possible to fix the error, but somehow it doesn't work Here my Sound File: import Foundation import AVFoundation var audioPlayer: AVAudioPlayer! /// Play sounds /// - Parameter sound: Sound filename func playSound(sound: String) { let url = Bundle.main.url(forResource: sound, withExtension: "wav", subdirectory: "Resources/Sounds") guard url != nil else { print("error") return } do { audioPlayer = try AVAudioPlayer(contentsOf: url!) if !audioPlayer.isPlaying { audioPlayer?.play() } else { audioPlayer?.stop() } } catch { print(error) } }
4
0
1.4k
Apr ’23
Audio from haptic engine only playing through speakers
I'm working on an app that uses CoreHaptics to play a synchronised pattern of vibrations and audio. The problem is that the audio only gets played through the iPhones speakers (if the mute switch is not turned on). As soon as I connect my AirPods to the phone the audio stops playing, but the haptics continue. My code looks something like this: let engine = CHHapticEngine() ... var events = [CHHapticEvent]() ... let volume: Float = 1 let decay: Float = 0.5 let sustained: Float = 0.5 let audioParameters = [ CHHapticEventParameter(parameterID: .audioVolume, value: volume), CHHapticEventParameter(parameterID: .decayTime, value: decay), CHHapticEventParameter(parameterID: .sustained, value: sustained) ] let breathingTimes = pacer.breathingTimeInSeconds let combinedTimes = breathingTimes.inhale + breathingTimes.exhale let audioEvent = CHHapticEvent( audioResourceID: selectedAudio, parameters: audioParameters, relativeTime: 0, duration: combinedTimes ) events.append(audioEvent) ... let pattern = try CHHapticPattern(events: events, parameterCurves: []) let player = try engine.makeAdvancedPlayer(with: pattern) ... try player.start(atTime: CHHapticTimeImmediate) My idea to activate an audio session before the player starts, to indicate to the system that audio is played, also didn't changed the outcome: try AVAudioSession.sharedInstance().setActive(true) Is there a different way to route the audio from CoreHaptics to a different output other than the integrated speakers?
1
0
1.8k
Jan ’23
Can't adjust the volume of earpiece speaker while listening voice messages on Whatsapp, Telegram.
I'm not sure if my iPhone doesn't have this feature or if all the iPhones don't have this functionality. I'm a new iPhone user. I used Android until this time. And basically, I can't adjust the volume of the earpiece speaker while I am listening voice messages on Whatsapp through the earpiece speaker. Because Whatsapp has the function to hear voice messages directly via an earpiece speaker when approaching the ear. But I can't adjust the volume. I tried to adjust the volume on cellular (normal) calls, and it worked. But it doesn't work on Whatsapp messages and it is the same on Telegram. Android has this feature. Is there a fix for this? Or is it absent in the first place?
1
0
1.6k
Dec ’22
iPhone 7 does not support haptic feedback?
We are using the following code to check for the haptics support on the device import CoreHaptics let hapticCapability = CHHapticEngine.capabilitiesForHardware() let supportsHaptics: Bool = hapticCapability.supportsHaptics For some reason it returns false on iPhone 7 not only on my personal device (iOS 13) but some of our users reported the haptic settings missing from our app on iPhones 7 (iOS 15) as well. I have just checked with this private api call that in fact the devices does support haptics (obviously, it has not physical home button) extension UIDevice {     var feedbackSupportLevel: Int? {         value(forKey: "_feedbackSupportLevel") as? Int     } } let supportsHaptics: Bool = UIDevice.current.feedbackSupportLevel == 2 And it returns true, as expected. Weird thing is that the haptics work perfectly fine, it's just the haptics support status is incorrect. So my question is: will we be rejected for checking the value of the _feedbackSupportLevel on UIDevice just to make sure we are correctly displaying available system features for our users on all of the devices?
2
1
2.3k
Dec ’22
Sound output of apple devices
Hi, We are developing a hearing test that runs on apple devices. As part of the process of getting our product certified risk factors are to be assessed. One risk factor can be that the device malfunction and sends a sound (constant high) that ultimately damages the test persons hearing. Is anyone familiar with the hight possible output of sound (in dB) from apple devices?
2
0
990
Oct ’22
Add haptic feedback to Reality Composer experience or to a USDZ?
Is it possible to add haptic feedback to a USDZ in Reality Composer? For example, if I want a phone to single-tap after knocking over a 3D model of a block in augmented reality, is that possible to do, and if so, how? If this is not possible to do within Reality Composer, is it possible to add haptic feedback to a USDZ in some other way? For example, if I have a USDZ model of a button in augmented reality view, can I have the phone single-tap when the button model is pushed? If so, how can I accomplish this? Thanks in advance for your help!
0
0
966
Oct ’22
Configuring grid lines for the axes descriptor
Hi! I was trying out the Audio Graph APIs. I'm trying to add gridlines to my chart's data axes descriptor, but doing so doesn't seem to make any difference to me. So I'm surely missing something... I was watching the WWDC21 session "Bring accessibility to charts in your app", and the presenter says: "When you provide grid lines, they're represented in the audio graph as haptic feedback during playback and interaction." And that is quite interesting! This is how I'm trying to do it. var accessibilityChartDescriptor: AXChartDescriptor? {         get {             let xAxis = AXNumericDataAxisDescriptor(title: "Lines of code", range: 0...10, gridlinePositions: [2.5, 5.0, 7.5]) { number in                 "\(number) lines"             }             let yAxis = AXNumericDataAxisDescriptor(title: "Lines of code", range: 0...40, gridlinePositions: []) { number in                 "\(number) cups"             }             let dataSeriesDescriptor = AXDataSeriesDescriptor(name: "Lines of code per coffees taken", isContinuous: false, dataPoints: [20, 30, 35, 32, 28, 9, 4, 3, 15, 1].enumerated().map({ (point, index) in                 AXDataPoint(x: Double(point), y: Double(index), additionalValues: [], label: nil)             }))             return AXChartDescriptor(title: "Cups of coffee vs. lines of code", summary: "This chart shows how coffee consumption impacts coding ability", xAxis: xAxis, yAxis: yAxis, additionalAxes: [], series: [dataSeriesDescriptor])         }         set {}     } But for me, it already showed grid lines even if I didn't configure them. Once I do, they don't change visually and it is not adding any haptic feedback... Any pointers on how I can achieve having gridlines that provide haptic feedback would be hugely appreciated! Many thanks!
1
0
1.2k
Sep ’22
Can a background/remote notification trigger a haptic alert on an Apple Watch?
I am wondering if it is possible for a watch app to play a haptic alert when it receives a background notification. I want to send the user a haptic alert if a value in a database reaches a certain threshold.
Replies
0
Boosts
1
Views
939
Activity
Aug ’23
Cracking Popping Sound When Playing a Video on Montery 12.6.7
It is so frustrating and the second time this has happened to me. I found a fix for the first time, but can't seem to find one now. Help! Anyone know what to do to stop the noise? Lisa
Replies
1
Boosts
1
Views
1.1k
Activity
Jul ’23
iphone 14 Pro Max running iOS 16.5 Does not make a sound when receiving a text.
iPhone 14 Pro Max running iOS 16.5 Bought May 23rd 2023, USA to upgrade Does not make a sound when receiving a text. However, it will ring when receiving a phone call. I have tried turn blue tooth off, reboot IPhone, turn blue tooth back on it lasts for a day then back to no sound when I receive a text. Why? Any help would be greatly appreciated. I have tried everything I could find on google, reddit changing the sound turning on notifications if you could think of it I have more than likely tried it. Yes, I have a apple watch. That's why the blue tooth is on. But please give me some suggestions, or is this known about, and they will put a fix in the next update? I have searched till my eyes fell out.
Replies
1
Boosts
0
Views
845
Activity
Jun ’23
Custom Haptics on Apple Watch
Is it possible to customize haptics on Apple Watch (something like CoreHaptics) rather than using standard haptics out of WatchKit? I'm looking for a way to play a continuous waveform (like a more complex version of Breathe).
Replies
11
Boosts
5
Views
6.7k
Activity
Jun ’23
WatchOS Haptic Feedback Without Sound
Id like to provide haptic feedback to users on Apple Watch without playing any sound (for my meditation app). The only way I found to play haptic feedback is WKInterfaceDevice.current()play(.start) but this produce sound as well. Apple's Mindfulness app has haptic feedback without playing any sound. Is there a way how to achieve it? Thanks!
Replies
1
Boosts
1
Views
1.4k
Activity
Jun ’23
How to detect touch pressure in a post-3D Touch world?
Hi all, I'm working on an iOS app that takes a user's input via touch and returns audio and haptic feedback relative to how hard the user touches the screen (i.e., the harder the user touches the screen, the louder the volume and stronger the haptic response will be). The problem is that the tracking of pressure sensitivity only seems to be available on iOS devices with 3D Touch functionality, which Apple discontinued in 2019-2020 in favor of the much simpler Haptic Touch functionality, which does not appear to offer dynamic tracking of touch inputs. How does this affect my users? Well, those who have an older iPhone between 6s and 11 (excluding SE and XR) will have access to a fully functional immersive environment that provides dynamic audio and haptic responses based on the pressure of their touch inputs - exactly as intended. Unfortunately, the majority of my users who use an iPhone 12 or above will be left with a static environment that provides the same audio and haptic response regardless of the pressure of their touch inputs. Ironically, users with old iPhones will have full access to my app's functionality, while users with new iPhones will be excluded from the experience that I wish to provide. As a developer who is passionate about providing dynamic and immersive experiences to more than a subset of his users, Apple's dropping of 3D Touch for Haptic Touch feels like a massive downgrade in terms of functionality and performance. Is there any way to bypass the limitations of the new Haptic Touch iPhones so that I can record touch pressure sensitivity and provide new iPhone users with the same dynamic experience that old iPhone users enjoy?
Replies
0
Boosts
1
Views
1.5k
Activity
Jun ’23
Prevent sound from playing via Bluetooth if mute switch is active
I'm writing an app in which I have a sound being played whenever a particular action occurs. During testing I noticed that this sounds will always be heard if my phone is connected to a Bluetooth speaker even if the mute switch is active. Is there a way to prevent this? I feel like my app should respect the mute switch in this case. If I am not connected to the Bluetooth speaker everything works as expected.
Replies
1
Boosts
1
Views
1.1k
Activity
May ’23
App with haptics crashes on iPhone6
We added haptics to our app. Great feature, but we are now receiving complaints from users with the iPhone6 that the app is crashing. Looking for a way to avoid crashes on unsupported devices. If we default the use of haptics to "off" can we avoid the crashes? Or is this crash going to happen simply by having haptics in the app. I am not the programmer. I am a developer on the project.
Replies
1
Boosts
0
Views
781
Activity
May ’23
How do I access the new macOS system sounds
I would like the user to choose which sounds to play upon success or failure in my macOS app. How can I get the new macOS system sounds for my picker?? Bop, Breeze, Bubble, etc.?? I have no trouble finding the old sounds, Basso, Bottle, Purr, etc., but I'd like to show the new sounds in the picker. Where are they located?
Replies
0
Boosts
0
Views
800
Activity
May ’23
Apple watch series 8 haptic won't work
I have bought apple watch series 8 yesterday and I realized that it's haptic vibration does not work. Every settings seems to be right. I don't know what is the problem. I searched a lot on the web and tested almost every possible OS solutions but none of them helped me. May be a hardware problem? Could anyone help me to solve this problem? Watch os version is 9.4(latest version at this time)
Replies
2
Boosts
0
Views
1.2k
Activity
Apr ’23
Bundle.main.url(forResource: sound, withExtension: "wav", subdirectory: "Resources/Sounds") returns nil
Hi everyone, I'm trying to play sounds in my playground, but whenever I try to get the path, nothing comes out. I've tried everything possible to fix the error, but somehow it doesn't work Here my Sound File: import Foundation import AVFoundation var audioPlayer: AVAudioPlayer! /// Play sounds /// - Parameter sound: Sound filename func playSound(sound: String) { let url = Bundle.main.url(forResource: sound, withExtension: "wav", subdirectory: "Resources/Sounds") guard url != nil else { print("error") return } do { audioPlayer = try AVAudioPlayer(contentsOf: url!) if !audioPlayer.isPlaying { audioPlayer?.play() } else { audioPlayer?.stop() } } catch { print(error) } }
Replies
4
Boosts
0
Views
1.4k
Activity
Apr ’23
Cracking and Popping Sound on Macbook pro 16 inch m1 pro
I am facing MacBook sound cracking and popping sound issues of 5-month-old MacBook pro m1 pro 16 inches. Does anyone help me, I have changed HZ but not fixed 100%. Please help the community.
Replies
2
Boosts
2
Views
2.4k
Activity
Feb ’23
Audio from haptic engine only playing through speakers
I'm working on an app that uses CoreHaptics to play a synchronised pattern of vibrations and audio. The problem is that the audio only gets played through the iPhones speakers (if the mute switch is not turned on). As soon as I connect my AirPods to the phone the audio stops playing, but the haptics continue. My code looks something like this: let engine = CHHapticEngine() ... var events = [CHHapticEvent]() ... let volume: Float = 1 let decay: Float = 0.5 let sustained: Float = 0.5 let audioParameters = [ CHHapticEventParameter(parameterID: .audioVolume, value: volume), CHHapticEventParameter(parameterID: .decayTime, value: decay), CHHapticEventParameter(parameterID: .sustained, value: sustained) ] let breathingTimes = pacer.breathingTimeInSeconds let combinedTimes = breathingTimes.inhale + breathingTimes.exhale let audioEvent = CHHapticEvent( audioResourceID: selectedAudio, parameters: audioParameters, relativeTime: 0, duration: combinedTimes ) events.append(audioEvent) ... let pattern = try CHHapticPattern(events: events, parameterCurves: []) let player = try engine.makeAdvancedPlayer(with: pattern) ... try player.start(atTime: CHHapticTimeImmediate) My idea to activate an audio session before the player starts, to indicate to the system that audio is played, also didn't changed the outcome: try AVAudioSession.sharedInstance().setActive(true) Is there a different way to route the audio from CoreHaptics to a different output other than the integrated speakers?
Replies
1
Boosts
0
Views
1.8k
Activity
Jan ’23
Can't adjust the volume of earpiece speaker while listening voice messages on Whatsapp, Telegram.
I'm not sure if my iPhone doesn't have this feature or if all the iPhones don't have this functionality. I'm a new iPhone user. I used Android until this time. And basically, I can't adjust the volume of the earpiece speaker while I am listening voice messages on Whatsapp through the earpiece speaker. Because Whatsapp has the function to hear voice messages directly via an earpiece speaker when approaching the ear. But I can't adjust the volume. I tried to adjust the volume on cellular (normal) calls, and it worked. But it doesn't work on Whatsapp messages and it is the same on Telegram. Android has this feature. Is there a fix for this? Or is it absent in the first place?
Replies
1
Boosts
0
Views
1.6k
Activity
Dec ’22
iPhone 7 does not support haptic feedback?
We are using the following code to check for the haptics support on the device import CoreHaptics let hapticCapability = CHHapticEngine.capabilitiesForHardware() let supportsHaptics: Bool = hapticCapability.supportsHaptics For some reason it returns false on iPhone 7 not only on my personal device (iOS 13) but some of our users reported the haptic settings missing from our app on iPhones 7 (iOS 15) as well. I have just checked with this private api call that in fact the devices does support haptics (obviously, it has not physical home button) extension UIDevice {     var feedbackSupportLevel: Int? {         value(forKey: "_feedbackSupportLevel") as? Int     } } let supportsHaptics: Bool = UIDevice.current.feedbackSupportLevel == 2 And it returns true, as expected. Weird thing is that the haptics work perfectly fine, it's just the haptics support status is incorrect. So my question is: will we be rejected for checking the value of the _feedbackSupportLevel on UIDevice just to make sure we are correctly displaying available system features for our users on all of the devices?
Replies
2
Boosts
1
Views
2.3k
Activity
Dec ’22
Sound issues
Hi everyone, my MacBook Air sound is crackling when I play music with high volume. It’s from my left speaker. I bought last 5days. MacBook Air m2 2022
Replies
1
Boosts
0
Views
871
Activity
Nov ’22
Sound output of apple devices
Hi, We are developing a hearing test that runs on apple devices. As part of the process of getting our product certified risk factors are to be assessed. One risk factor can be that the device malfunction and sends a sound (constant high) that ultimately damages the test persons hearing. Is anyone familiar with the hight possible output of sound (in dB) from apple devices?
Replies
2
Boosts
0
Views
990
Activity
Oct ’22
Add haptic feedback to Reality Composer experience or to a USDZ?
Is it possible to add haptic feedback to a USDZ in Reality Composer? For example, if I want a phone to single-tap after knocking over a 3D model of a block in augmented reality, is that possible to do, and if so, how? If this is not possible to do within Reality Composer, is it possible to add haptic feedback to a USDZ in some other way? For example, if I have a USDZ model of a button in augmented reality view, can I have the phone single-tap when the button model is pushed? If so, how can I accomplish this? Thanks in advance for your help!
Replies
0
Boosts
0
Views
966
Activity
Oct ’22
Configuring grid lines for the axes descriptor
Hi! I was trying out the Audio Graph APIs. I'm trying to add gridlines to my chart's data axes descriptor, but doing so doesn't seem to make any difference to me. So I'm surely missing something... I was watching the WWDC21 session "Bring accessibility to charts in your app", and the presenter says: "When you provide grid lines, they're represented in the audio graph as haptic feedback during playback and interaction." And that is quite interesting! This is how I'm trying to do it. var accessibilityChartDescriptor: AXChartDescriptor? {         get {             let xAxis = AXNumericDataAxisDescriptor(title: "Lines of code", range: 0...10, gridlinePositions: [2.5, 5.0, 7.5]) { number in                 "\(number) lines"             }             let yAxis = AXNumericDataAxisDescriptor(title: "Lines of code", range: 0...40, gridlinePositions: []) { number in                 "\(number) cups"             }             let dataSeriesDescriptor = AXDataSeriesDescriptor(name: "Lines of code per coffees taken", isContinuous: false, dataPoints: [20, 30, 35, 32, 28, 9, 4, 3, 15, 1].enumerated().map({ (point, index) in                 AXDataPoint(x: Double(point), y: Double(index), additionalValues: [], label: nil)             }))             return AXChartDescriptor(title: "Cups of coffee vs. lines of code", summary: "This chart shows how coffee consumption impacts coding ability", xAxis: xAxis, yAxis: yAxis, additionalAxes: [], series: [dataSeriesDescriptor])         }         set {}     } But for me, it already showed grid lines even if I didn't configure them. Once I do, they don't change visually and it is not adding any haptic feedback... Any pointers on how I can achieve having gridlines that provide haptic feedback would be hugely appreciated! Many thanks!
Replies
1
Boosts
0
Views
1.2k
Activity
Sep ’22
Custom pronounciation for my App Icon. Can Acessibility Label apply to "App Icon"?
I need to custom the pronounciation of my App Icon. Now my icon is named "Hi KE", and now voice over speaks "Hike", I want it speak like "Hi", "K", "E". What should I do to work this out? I
Replies
0
Boosts
0
Views
1.2k
Activity
Aug ’22