Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS AudioEncoder.wav Not supported #302

Closed
xhzth70911 opened this issue Apr 10, 2024 · 0 comments
Closed

iOS AudioEncoder.wav Not supported #302

xhzth70911 opened this issue Apr 10, 2024 · 0 comments

Comments

@xhzth70911
Copy link

Package version
record: ^5.0.4

Environment

  • OS: iOS 13.3.1,iPhone 6 plus
    Describe the bug

A clear and concise description of what the bug is.

Add your record configuration RecordConfig(...)
const RecordConfig(
encoder: AudioEncoder.wav,
),
To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

AudioEncoder.aacLc normal,AudioEncoder.wav Error

await record.start(
const RecordConfig(
encoder: AudioEncoder.wav,
),
path: "${PathHelper().getCachePath}/${123}.m4a",
);

Error reporting:
flutter:
ea8670238b9dc54ff106178750b0c55e
093a7a9235e75432b93cf6f10570a593
e8b023616f113d37562e6f1b20a7ac95

xcode:
Unhandled Exception: PlatformException(record, The operation couldn’t be completed. (OSStatus error 1718449215.), null, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)

#2 AudioRecorder.start (package:record/src/record.dart:53:5)

#3 _VoiceRecordState.build. (package:askaide/page/component/chat/voice_record.dart:119:15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant