You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still not saving the file I am using your provided example. On stop its showing the path but this path has no audio file.
My OS is Ubuntu 22.04.3 LTS
I am building application for linux desktop.
file path I get onStop :/home/abc/audio_1724627047648.m4a
error if try to read the file
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PathNotFoundException: Cannot retrieve length of file, path = '/home/abc/audio_1724627047648.m4a' (OS Error: No such file or directory, errno = 2)
#0 _checkForErrorResponse (dart:io/common.dart:55:9) #1 _File.length. (dart:io/file_impl.dart:389:7)
Package version
Environment
Describe the bug
recording audio on linux desktop application but the issue is that when i stop recording its not saving the file. So I am unable to play the audio.
Add your record configuration
RecordConfig(...)
record.start(const RecordConfig(), path: filePath,);
To Reproduce
void _startRecording() async {
setState(() {
_isRecording = true;
_recordDuration = 0;
});
String audioRecordId = DateTime.now().millisecondsSinceEpoch.toString();
}
void _stopRecording() async {
if (_timer != null) {
_timer!.cancel();
}
}
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: