Trending

#AVFoundation

Latest posts tagged with #AVFoundation on Bluesky

Latest Top
Trending

Posts tagged #AVFoundation

Preview
Supporting JPEG-XL compression in Apple ProRAW Capture Pinpoint some trouble you may encounter when supporting JPEG-XL

πŸ“· π‘†π‘’π‘π‘π‘œπ‘Ÿπ‘‘π‘–π‘›π‘” 𝐽𝑃𝐸𝐺-𝑋𝐿 π‘π‘œπ‘šπ‘π‘Ÿπ‘’π‘ π‘ π‘–π‘œπ‘› 𝑖𝑛 𝐴𝑝𝑝𝑙𝑒 π‘ƒπ‘Ÿπ‘œπ‘…π΄π‘Š πΆπ‘Žπ‘π‘‘π‘’π‘Ÿπ‘’ by Weichao Deng

Want to reduce 48MP ProRAW file sizes without sacrificing quality? Discover how to enable JPEG-XL compression in your camera app and navigate an undocumented π΄π‘‰πΉπ‘œπ‘’π‘›π‘‘π‘Žπ‘‘π‘–π‘œπ‘› API.

#AVFoundation #ProRAW #iOSDevelopment

3 0 0 0
Post image

Hello World!

I built a SwiftUI camera translation app using AVFoundation, Vision, and ML Kit.

Offline, private, supports multiple languages, and saves your phrases.

Curious or want to support indie dev work?
apps.apple.com/app/vi-trans...

#iOS #translate #SwiftUI #AVFoundation #ML #offline

4 0 1 0

Do I have any audio processing gurus on here? I got high/low pass filters, compressors, peak limiters etc in place. But I got no idea how to configure them to improve the audio. πŸ™ˆ

If anyone wants to get on a call, ping me!

#avfoundation #podcast #apple #audioUnits

0 0 0 0

Podcast folks, we pushed a new Lysten beta yesterday that adjusts the audio in realtime.

The idea is to boost vocals, lower bass and normalize audio. Please reach out if you got any feedback!

#iOS #podcast #audioUnits #avfoundation

3 1 0 0
import AVFoundation
import Speech
import SwiftUI

@MainActor @Observable
class SpeechRecognizer: NSObject {
  private let audioEngine = AVAudioEngine()

  func startRecording() {
    let format = audioEngine.inputNode.inputFormat(forBus: 0)

    guard format.channelCount > 0 else {
      return
    }

    audioEngine.inputNode.installTap(onBus: 0, bufferSize: 1024, format: format) { _, _ in
      print("crashes in _dispatch_assert_queue_fail() before this is printed")
    }

    audioEngine.prepare()

    do {
      try audioEngine.start()
    }
    catch {
      print("start threw \(error)")
    }
  }
}

import AVFoundation import Speech import SwiftUI @MainActor @Observable class SpeechRecognizer: NSObject { private let audioEngine = AVAudioEngine() func startRecording() { let format = audioEngine.inputNode.inputFormat(forBus: 0) guard format.channelCount > 0 else { return } audioEngine.inputNode.installTap(onBus: 0, bufferSize: 1024, format: format) { _, _ in print("crashes in _dispatch_assert_queue_fail() before this is printed") } audioEngine.prepare() do { try audioEngine.start() } catch { print("start threw \(error)") } } }

This Swift 6 code crashes in _dispatch_assert_queue_fail(), even if the installTap() closure is empty. If I remove the MainActor annotation on the class, it works. Anybody else seen and/or worked around this?

#swift #concurrency #avfoundation

1 0 0 0
import AVFoundation
import Speech
import SwiftUI

@MainActor @Observable
class SpeechRecognizer: NSObject {
  private let audioEngine = AVAudioEngine()

  func startRecording() {
    let format = audioEngine.inputNode.inputFormat(forBus: 0)

    guard format.channelCount > 0 else {
      return
    }

    audioEngine.inputNode.installTap(onBus: 0, bufferSize: 1024, format: format) { _, _ in
      print("crashes in _dispatch_assert_queue_fail() before this is printed")
    }

    audioEngine.prepare()

    do {
      try audioEngine.start()
    }
    catch {
      print("start threw \(error)")
    }
  }
}

import AVFoundation import Speech import SwiftUI @MainActor @Observable class SpeechRecognizer: NSObject { private let audioEngine = AVAudioEngine() func startRecording() { let format = audioEngine.inputNode.inputFormat(forBus: 0) guard format.channelCount > 0 else { return } audioEngine.inputNode.installTap(onBus: 0, bufferSize: 1024, format: format) { _, _ in print("crashes in _dispatch_assert_queue_fail() before this is printed") } audioEngine.prepare() do { try audioEngine.start() } catch { print("start threw \(error)") } } }

This Swift 6 code crashes in _dispatch_assert_queue_fail(), even if the installTap() closure is empty. If I remove the MainActor annotation on the class, it works. Anybody else seen and/or worked around this?

#swift #concurrency #avfoundation

0 0 0 0

Do I happen to be connected with an AVFoundation expert on here? I’d like to pick your brain about something.

#avfoundation #macos

3 1 1 0
Preview
Can't append silent audio sample buffer Β· Issue #1 Β· darrarski/macOS-audio-gap-demo Summary When silent sample buffer is appended to AVAssetWriterInput to fill detected audio gap, the file can't be saved. Steps to reproduce Configure samples gap simulation between 3 and 6 seconds....

Looking for #AVFoundation #CoreMedia expert help to solve an issue with filling #audio gaps with silence when recording on macOS in #swift app. Any feedback much appreciated!
github.com/darrarski/macOS-audio-ga...

3 0 0 0