Fix typos in .Net APIs (#156)
This commit is contained in:
@@ -80,7 +80,7 @@ SherpaOnnxOnlineStream *CreateOnlineStream(
|
||||
return stream;
|
||||
}
|
||||
|
||||
void DestoryOnlineStream(SherpaOnnxOnlineStream *stream) { delete stream; }
|
||||
void DestroyOnlineStream(SherpaOnnxOnlineStream *stream) { delete stream; }
|
||||
|
||||
void AcceptWaveform(SherpaOnnxOnlineStream *stream, int32_t sample_rate,
|
||||
const float *samples, int32_t n) {
|
||||
@@ -222,7 +222,7 @@ SherpaOnnxOfflineStream *CreateOfflineStream(
|
||||
return stream;
|
||||
}
|
||||
|
||||
void DestoryOfflineStream(SherpaOnnxOfflineStream *stream) { delete stream; }
|
||||
void DestroyOfflineStream(SherpaOnnxOfflineStream *stream) { delete stream; }
|
||||
|
||||
void AcceptWaveformOffline(SherpaOnnxOfflineStream *stream, int32_t sample_rate,
|
||||
const float *samples, int32_t n) {
|
||||
|
||||
@@ -126,14 +126,14 @@ SHERPA_ONNX_API void DestroyOnlineRecognizer(
|
||||
///
|
||||
/// @param recognizer A pointer returned by CreateOnlineRecognizer()
|
||||
/// @return Return a pointer to an OnlineStream. The user has to invoke
|
||||
/// DestoryOnlineStream() to free it to avoid memory leak.
|
||||
/// DestroyOnlineStream() to free it to avoid memory leak.
|
||||
SHERPA_ONNX_API SherpaOnnxOnlineStream *CreateOnlineStream(
|
||||
const SherpaOnnxOnlineRecognizer *recognizer);
|
||||
|
||||
/// Destroy an online stream.
|
||||
///
|
||||
/// @param stream A pointer returned by CreateOnlineStream()
|
||||
SHERPA_ONNX_API void DestoryOnlineStream(SherpaOnnxOnlineStream *stream);
|
||||
SHERPA_ONNX_API void DestroyOnlineStream(SherpaOnnxOnlineStream *stream);
|
||||
|
||||
/// Accept input audio samples and compute the features.
|
||||
/// The user has to invoke DecodeOnlineStream() to run the neural network and
|
||||
@@ -303,14 +303,14 @@ SHERPA_ONNX_API void DestroyOfflineRecognizer(
|
||||
///
|
||||
/// @param recognizer A pointer returned by CreateOfflineRecognizer()
|
||||
/// @return Return a pointer to an OfflineStream. The user has to invoke
|
||||
/// DestoryOfflineStream() to free it to avoid memory leak.
|
||||
/// DestroyOfflineStream() to free it to avoid memory leak.
|
||||
SHERPA_ONNX_API SherpaOnnxOfflineStream *CreateOfflineStream(
|
||||
const SherpaOnnxOfflineRecognizer *recognizer);
|
||||
|
||||
/// Destroy an offline stream.
|
||||
///
|
||||
/// @param stream A pointer returned by CreateOfflineStream()
|
||||
SHERPA_ONNX_API void DestoryOfflineStream(SherpaOnnxOfflineStream *stream);
|
||||
SHERPA_ONNX_API void DestroyOfflineStream(SherpaOnnxOfflineStream *stream);
|
||||
|
||||
/// Accept input audio samples and compute the features.
|
||||
/// The user has to invoke DecodeOfflineStream() to run the neural network and
|
||||
|
||||
Reference in New Issue
Block a user