Skip to content

High Latency When Starting Recording in record Plugin on iPhone 11 (iOS 18) #476

@Djsmk123

Description

@Djsmk123

Package version
5.2.1

Environment

  • iOS 18 in Iphone 11 and simulator iOS 18

Description:

I am experiencing a high latency when starting audio recording using the record plugin on an iPhone 11 running iOS 18. The delay between initiating the recording and the actual start time is around 1 second, which is significantly high for real-time applications.

Steps to Reproduce:

Stopwatch stopwatch = Stopwatch()..start();
// Record to file
await recordFile(_audioRecorder, config);
stopwatch.stop();
print("Time taken: ${stopwatch.elapsed}");

Observed Output:

flutter: [
  id: Built-In Microphone
  label: iPhone Microphone
]
flutter: Time taken: 0:00:01.065523

Expected Behavior:

The recording should start with minimal delay (<30ms), as it happing in my current application where it took 1-3 seconds to start first time and from next time it took less than 50 ms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions