Skip to content

v0.9.2 - Audio Session Configurations

Compare
Choose a tag to compare
@Cay-Zhang Cay-Zhang released this 09 Sep 12:17
· 2 commits to master since this release
  • Added: SwiftSpeech.Session.Configuration now has a new property audioSessionConfiguration of type SwiftSpeech.Session.AudioSessionConfiguration. Use it to customize the audio sessions in your app. For example, if you want your app to play some audio while/after recordings, you can set the configuration to .playAndRecord.
  • Changed Behavior: Swift Speech now by default deactivates your app's audio session when a recording session stops, meaning other apps can resume their audio playback when your user finishes speaking. If you would like to change this behavior, see SwiftSpeech.Session.AudioSessionConfiguration.