Add support for tdrz and debug mode
This commit is contained in:
parent
851fca36d7
commit
6668c4e2aa
1 changed files with 19 additions and 0 deletions
|
|
@ -206,6 +206,15 @@ impl<'a, 'b> FullParams<'a, 'b> {
|
|||
self.fp.speed_up = speed_up;
|
||||
}
|
||||
|
||||
/// # EXPERIMENTAL
|
||||
///
|
||||
/// Enables debug mode, such as dumping the log mel spectrogram.
|
||||
///
|
||||
/// Defaults to false.
|
||||
pub fn set_debug_mode(&mut self, debug: bool) {
|
||||
self.fp.debug_mode = debug;
|
||||
}
|
||||
|
||||
/// # EXPERIMENTAL
|
||||
///
|
||||
/// Overwrite the audio context size. 0 = default.
|
||||
|
|
@ -216,6 +225,16 @@ impl<'a, 'b> FullParams<'a, 'b> {
|
|||
self.fp.audio_ctx = audio_ctx;
|
||||
}
|
||||
|
||||
/// # EXPERIMENTAL
|
||||
///
|
||||
/// Enable tinydiarize support.
|
||||
/// Experimental speaker turn detection.
|
||||
///
|
||||
/// Defaults to false.
|
||||
pub fn set_tdrz_enable(&mut self, tdrz_enable: bool) {
|
||||
self.fp.tdrz_enable = tdrz_enable;
|
||||
}
|
||||
|
||||
/// Set tokens to provide the model as initial input.
|
||||
///
|
||||
/// These tokens are prepended to any existing text content from a previous call.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue