Search results for

Popping Sound

19,348 results found

Post

Replies

Boosts

Views

Activity

Play Audio and Recognize Speech in Car
Hello, I'm trying to determine the best/recommended AVAudioSession configuration (i.e category, mode, and options) for the following use-case. Essentially, I'd like to switch between periods of playing an audio file and then recognizing speech. The audio file is typically speech and I don't intend for playback and speech recognition to occur simultaneously. I'd like for the user to sill be able to interact with Siri and I'd like for it to work with CarPlay where navigation prompts can occur. I would assume the category to use is 'playAndRecord', but I'm not sure if it's better to just set that once for the entire lifecycle, or set to 'playback' for audio file playback and then switch to 'playAndRecord' for speech recognition . I'm also not sure on the best 'mode' and 'options' to set. Any suggestions would be appreciated. Thanks.
0
0
440
2w
SwiftData and CloudKit: NSKeyedUnarchiveFromData Error
I just made a small test app that uses SwiftData with CloudKit capability. I created a simple Book model as seen below. It looks like enums and structs when used with CloudKit capability all trigger this error: 'NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release I fixed the error by using genreRaw String and using a computed property to use it in the app, but it popped back up after adding the ReadingProgress struct Should I ignore the error and assume Apple still supports enums and codable structs when using SwiftData with CloudKit? import SwiftData @Model class Book { var title: String = var author: String = var genreRaw: String = Genre.fantasy.rawValue var review: String = var rating: Int = 3 var progress: ReadingProgress? var genre: Genre { get { Genre(rawValue: genreRaw) ?? Genre.fantasy } set { genreRaw = newValue.rawValue } } init(title: String, author: String, genre: Genre, review: String, rating: Int, progress: ReadingProgress? = nil)
1
0
262
3w
Reply to iOS folder bookmarks
error 00:47:00.954979+0100 kernel Sandbox: BookmarksBench(61956) deny(1) file-write-data /Users/user/Documents/file which reminded me to check the entitlements – turns out I forgot to specify read/write access for user-selected files... Fixed that - and everything is good now. Thank you. Yes. The type of access a bookmark will allow is embedded at creation, so you can't use NSURLBookmarkCreationWithSecurityScope unless you already have read/write access from the sandbox. However, one slightly odd detail is the words from words sandbox. The sandbox and Unix permissions systems operate independently of each other, which means you can create a NSURLBookmarkCreationWithSecurityScope (read/write access) to an object you only have read (Unix) permission to. Your app still won't be able to access that object (because the Unix permissions will block it), but it would be able to access it in the future after the Unix permissions change. PS. Quite interesting that that affects secure bookmark creation, but not normal b
Topic: App & System Services SubTopic: Core OS Tags:
3w
Reply to Autocomplete Select not working with VoiceOver in iOS 18.6.2
Thanks for writing about this. It sounds like what you are experiencing could be a bug. Please file a report using the Feedback Assistant tool with these details about your experience including a screen recording of you trying out the selection behavior with and without VoiceOver. https://developer.apple.com/bug-reporting/ After you create your report, reply here with the Feedback ID so I can take a look
3w
KVO crashes in older OS-Versions not replicable in Sequoia
Greetings, With MacOS 15 Sequoia, Apple updated key-value-observations in such a way, that an unremoved observation by a now deallocated object will no longer cause an exception, when the observed object triggers said observation. While this is fundamentally a positive change, the issue comes with the fact, that this change affects systems based on the version of their operating system and not the version of the operating system of the build system. Many of our customers use old operating system versions and old hardware - meaning they can't easily update. Since we need to use up to date Xcode versions to develop for newer systems, our developers tend to have rather new OS versions. This means, that we are increasingly facing bugs which only happen in customer systems but not in most developer (or QA) systems. Currently, we still can use earlier OS versions with Xcode to fix these bugs, but once the used Xcode versions no longer support MacOS 14 or below this will become a major hurdle. Are there known soluti
3
0
499
3w
Reply to Seeking clarification on macOS URLs with security scope
It sounds like a large number of directories have been blocked - i.e. all of them. Or are these blocked target file prefixes rather than directories? Looking at my previous post, our editor mangled things a bit. Phrasing things a bit more plainly, document-scoped bookmarks can't track files in /Library (either the system or user level), /private/, or .ssh. None of those are directories I'd expect the user to be saving their data in. I could see /Library being a potential problem, however, that doesn't seem to have been much of an issue in practice since this is the first time I've ever noticed the limitation (and that was simply from looking at code). That's better than the error message it throws now. But I'm a bit confused about your object/target nomenclature. Sorry about that, I flipped my terminology mid-post. Restating things: target” -> the file you’re actually creating a bookmark to. anchor” -> the file you're attaching the document scope onto. So your anchor can be wherever you want, b
Topic: App & System Services SubTopic: Core OS Tags:
3w
WebRTC Data Channel for Background File Transfer Without Audio/Video
Hello, I’m building an iOS application that supports peer-to-peer file transfer. My goal is to use the WebRTC data channel only (no audio or video) to send files between users. I understand from Apple’s documentation that: • Apps are generally suspended in the background, and arbitrary sockets (like WebRTC) do not continue running. • Background file transfer is officially supported via URLSessionConfiguration.background, which the system manages reliably even if the app is suspended or terminated. • VoIP use cases require CallKit + audio/VoIP background modes, and CallKit must be used for legitimate calls (audio/video). What I want to confirm is: Is it supported for a WebRTC peer connection using only the data channel (no audio/video track, no CallKit call) to continue sending data when the app is in the background or locked? I considered using BGProcessingTask and BGAppRefreshTask, but as far as I can tell, those don’t allow maintaining long-lived sockets for active data t
4
0
105
3w
Reply to Seeking clarification on macOS URLs with security scope
You do have to add com.apple.security.files.bookmarks.document-scope to your entitlement file yourself, Already done. The object you're using as the bookmark anchor needs to be a file, not a directory, and must be a file you already have full read/write access to. Already done. The object you're targeting needs to be a file as well. That's an important plot point. My current app looks at folders exclusively. So that's all I tested. Document scoped bookmarks are designed to be used to track groups of user files (for example, like an Xcode project), so a small number of directories have been blocked. It sounds like a large number of directories have been blocked - i.e. all of them. Or are these blocked target file prefixes rather than directories? Ah well, such is life. I'm working an an iOS/macOS GUI version of a command-line GIS tool. I had wanted to allow the user to specify a directory to be used as a library. Power users could then use my sandboxed and Metal-powered version of the command line app
Topic: App & System Services SubTopic: Core OS Tags:
3w
Reply to What is the purpose of the `alert` field for live activities payloads?
The alert field (it is actually a JSON key containing a title, body, and sound keys) is used to alert a person about a critical Live Activity update. When included in the payload, it will light up their device (if appropriate) and display the expanded presentation on devices that support the Dynamic Island or a banner on devices that don’t support it. Its content DOES matter, as without any text or sound, it is basically a silent notification, and its behavior in the context of live activities is undefined.
3w