Skip to content

Commit

Permalink
Update for modern Bluetooth devices (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Oct 22, 2024
1 parent 5f982b8 commit 4febc38
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ios-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
-workspace ios-voice-processor.xcworkspace
-sdk iphoneos
-scheme ios-voice-processor-Example
-destination "platform=iOS Simulator,name=iPhone 12"
-destination "platform=iOS Simulator,name=iPhone 15"
CODE_SIGNING_ALLOWED=NO
4 changes: 2 additions & 2 deletions VoiceProcessor.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2021-2023 Picovoice Inc.
// Copyright 2021-2024 Picovoice Inc.
// You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
// file accompanying this source.
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
Expand Down Expand Up @@ -241,7 +241,7 @@ public class VoiceProcessor {
do {
try AVAudioSession.sharedInstance().setCategory(
AVAudioSession.Category.playAndRecord,
options: [.mixWithOthers, .defaultToSpeaker, .allowBluetooth])
options: [.mixWithOthers, .allowAirPlay, .allowBluetoothA2DP])
try AVAudioSession.sharedInstance().setActive(
true,
options: .notifyOthersOnDeactivation)
Expand Down
4 changes: 2 additions & 2 deletions example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- ios-voice-processor (1.1.0)
- ios-voice-processor (1.1.1)

DEPENDENCIES:
- ios-voice-processor (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1
ios-voice-processor: 4035132542c7ae07f1e459c6d276b6da000302bb

PODFILE CHECKSUM: f3172c9d85af56bf5f3c29596f2387f5961c52b6

Expand Down
4 changes: 0 additions & 4 deletions example/VoiceProcessorTests/VoiceProcessorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ class VoiceProcessorTests: XCTestCase {
continueAfterFailure = false
}

override func tearDown() {
super.tearDown()
}

func testBasic() throws {
let voiceProcessor = VoiceProcessor.instance

Expand Down
4 changes: 2 additions & 2 deletions ios-voice-processor.podspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Picovoice Inc.
# Copyright 2021-2024 Picovoice Inc.
# You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
# file accompanying this source.
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
Expand All @@ -10,7 +10,7 @@
Pod::Spec.new do |s|
s.name = 'ios-voice-processor'
s.module_name = 'ios_voice_processor'
s.version = '1.1.0'
s.version = '1.1.1'
s.summary = 'An asynchronous iOS audio recording library designed for real-time speech audio processing.'
s.description = <<-DESC
The iOS Voice Processor is an asynchronous audio capture library designed for real-time audio processing.
Expand Down

0 comments on commit 4febc38

Please sign in to comment.