diff options
| author | Konstantin <const@const.me> | 2023-02-03 12:52:05 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-02-03 12:52:05 +0100 |
| commit | 6238fc31c6a0a6004cfb6791a7bf85c829c8acc9 (patch) | |
| tree | 7645adb3aea2422ebf35640906a52c395b37a5f1 /WhisperNet/API/iMediaFoundation.cs | |
| parent | 2deddc6e541bc61f72e07f7cc82f91d7e117f619 (diff) | |
Minor, API documentation
Diffstat (limited to 'WhisperNet/API/iMediaFoundation.cs')
| -rw-r--r-- | WhisperNet/API/iMediaFoundation.cs | 7 |
1 files changed, 4 insertions, 3 deletions
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 { /// <summary>Decode complete audio file into a new memory buffer.</summary> /// <returns> - /// Under the hood, the method asks MF to resample and convert audio into the suitable type for the Whisper model.<br/> + /// The method asks MF to resample and convert audio into the suitable type for the Whisper model.<br/> /// If the path is a video file, the method will decode the first audio track. /// </returns> [RetValIndex( 2 )] @@ -20,8 +20,9 @@ namespace Whisper /// <summary>Create a reader to stream the audio file from disk</summary> /// <returns> - /// Under the hood, the method asks MF to resample and convert audio into the suitable type for the Whisper model.<br/> - /// 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.<br/> + /// 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).<br/> + /// If the path is a video file, the implementation will use the first audio track. /// </returns> [RetValIndex( 2 )] iAudioReader openAudioFile( [MarshalAs( UnmanagedType.LPWStr )] string path, [MarshalAs( UnmanagedType.U1 )] bool stereo = false ); |
