Fix inaccurate doc comment for C++ equivalent
This commit is contained in:
parent
3e6d3da162
commit
0c509ec9c5
1 changed files with 6 additions and 1 deletions
|
|
@ -281,7 +281,12 @@ impl WhisperState {
|
||||||
/// Ok(c_int) on success, Err(WhisperError) on failure.
|
/// Ok(c_int) on success, Err(WhisperError) on failure.
|
||||||
///
|
///
|
||||||
/// # C++ equivalent
|
/// # C++ equivalent
|
||||||
/// `int whisper_full(struct whisper_context * ctx, struct whisper_full_params params, const float * samples, int n_samples)`
|
/// `int whisper_full_with_state(
|
||||||
|
/// struct whisper_context * ctx,
|
||||||
|
/// struct whisper_state * state,
|
||||||
|
/// struct whisper_full_params params,
|
||||||
|
/// const float * samples,
|
||||||
|
/// int n_samples)`
|
||||||
pub fn full(&mut self, params: FullParams, data: &[f32]) -> Result<c_int, WhisperError> {
|
pub fn full(&mut self, params: FullParams, data: &[f32]) -> Result<c_int, WhisperError> {
|
||||||
if data.is_empty() {
|
if data.is_empty() {
|
||||||
// can randomly trigger segmentation faults if we don't check this
|
// can randomly trigger segmentation faults if we don't check this
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue