fromFile
fun AudioRecording.Companion.fromFile(path: Path, fileSystem: FileSystem = SystemFileSystem): AudioRecording
Reads an audio file from the filesystem. The format is auto-detected from the file extension.
val recording = AudioRecording.fromFile(Path("recording.wav"))Content copied to clipboard
Parameters
path
The file path to read from.
fileSystem
The file system to use (default: SystemFileSystem).