fromFile

fun fromFile(audioPath: String, segments: List<Segment>, keyHz: Float): LessonMaterial

Create a LessonMaterial from file paths.

Parameters

audioPath

Path to the audio file

segments

List of segments

keyHz

Key frequency in Hz