From 6238fc31c6a0a6004cfb6791a7bf85c829c8acc9 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 3 Feb 2023 12:52:05 +0100 Subject: Minor, API documentation --- WhisperNet/API/iMediaFoundation.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'WhisperNet/API/iMediaFoundation.cs') diff --git a/WhisperNet/API/iMediaFoundation.cs b/WhisperNet/API/iMediaFoundation.cs index 535f904..b8d7449 100644 --- a/WhisperNet/API/iMediaFoundation.cs +++ b/WhisperNet/API/iMediaFoundation.cs @@ -12,7 +12,7 @@ namespace Whisper { /// Decode complete audio file into a new memory buffer. /// - /// Under the hood, the method asks MF to resample and convert audio into the suitable type for the Whisper model.
+ /// The method asks MF to resample and convert audio into the suitable type for the Whisper model.
/// If the path is a video file, the method will decode the first audio track. ///
[RetValIndex( 2 )] @@ -20,8 +20,9 @@ namespace Whisper /// Create a reader to stream the audio file from disk /// - /// Under the hood, the method asks MF to resample and convert audio into the suitable type for the Whisper model.
- /// If the path is a video file, the method will decode the first audio track. + /// The method returns an object which can be used to decode the audio file incrementally.
+ /// For long audio files, this saves both memory (no need for large uncompressed PCM buffer), and time (decode and transcribe run concurrently on different CPU threads).
+ /// If the path is a video file, the implementation will use the first audio track. ///
[RetValIndex( 2 )] iAudioReader openAudioFile( [MarshalAs( UnmanagedType.LPWStr )] string path, [MarshalAs( UnmanagedType.U1 )] bool stereo = false ); -- cgit v1.2.3