diff --git a/record/README.md b/record/README.md index fed1c048..1c776b9d 100644 --- a/record/README.md +++ b/record/README.md @@ -25,13 +25,13 @@ External dependencies: ## File | Encoder | Android | iOS | web | Windows | macOS | linux |-----------------|----------------|---------|---------|---------|---------|--------- -| aacLc | ✔️ | ✔️ | ? | ✔️ | ✔️ | ✔️ -| aacEld | ✔️ | ✔️ | ? | | ✔️ | -| aacHe | ✔️ | | ? | | | ✔️ +| aacLc | ✔️ | ✔️ | ? | ✔️ | ✔️ | ✔️ +| aacEld | ✔️ | ✔️ | ? | | ✔️ | +| aacHe | ✔️ | | ? | | | ✔️ | amrNb | ✔️ | | ? | ✔️ | | | amrWb | ✔️ | | ? | | | -| opus | ✔️ | | ? | | | ✔️ -| wav | ✔️ 2 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ +| opus | ✔️ | ✔️ | ? | | | ✔️ +| wav | ✔️ 2 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | flac | ✔️ 2 | ✔️ | ? | ✔️ | ✔️ | ✔️ | pcm16bits | ✔️ 2 | ✔️ | ✔️ | ✔️ | ✔️ | @@ -39,7 +39,7 @@ External dependencies: | Encoder | Firefox | Chrome based | Safari |-----------------|------------|----------------|--------- | aacLc | | | ✔️* -| opus | ✔️* | ✔️* | +| opus | ✔️* | ✔️* | | wav | ✔️ | ✔️ | ✔️ | pcm16bits | ✔️ | ✔️ | ✔️ @@ -51,7 +51,7 @@ wav and pcm16bits are provided by the package directly. | Encoder | Android | iOS | web | Windows | macOS | linux |-----------------|------------|---------|---------|---------|---------|--------- | aacLc * | ✔️ 2 | | | | | -| aacEld * | ✔️ 2 | | | | | +| aacEld * | ✔️ 2 | | | | | | aacHe * | ✔️ 2 | | | | | | pcm16bits | ✔️ 2 | ✔️ | ✔️ | ✔️ | ✔️ | diff --git a/record_darwin/darwin/Classes/Recorder.swift b/record_darwin/darwin/Classes/Recorder.swift index bcc68dc3..b919d261 100644 --- a/record_darwin/darwin/Classes/Recorder.swift +++ b/record_darwin/darwin/Classes/Recorder.swift @@ -139,6 +139,7 @@ class Recorder { case AudioEncoder.aacLc.rawValue, AudioEncoder.aacEld.rawValue, /*"aacHe", "amrNb", "amrWb", "opus",*/ AudioEncoder.flac.rawValue, + AudioEncoder.opus.rawValue, AudioEncoder.pcm16bits.rawValue, AudioEncoder.wav.rawValue: return true diff --git a/record_platform_interface/lib/src/types/audio_encoder.dart b/record_platform_interface/lib/src/types/audio_encoder.dart index c08c19f3..9e4cbc15 100644 --- a/record_platform_interface/lib/src/types/audio_encoder.dart +++ b/record_platform_interface/lib/src/types/audio_encoder.dart @@ -36,6 +36,8 @@ enum AudioEncoder { /// /// SDK 29 on Android /// + /// SDK 11 on iOS (CAF format container) + /// /// Suggested file extension: `opus` opus,