Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
w-rui
2024-12-31 18:07:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-12-31 18:07:52 +0800
Commit
0a43e9c8790639c2b1898ecc63b8e0a6dc3f0d3d
0a43e9c8
1 parent
ebe92e52
Add constructor fromPtr() for all flutter class with factory ctor. (#1667)
Co-authored-by: wangrui <wangrui@oecore.com>
显示空白字符变更
内嵌
并排对比
正在显示
9 个修改的文件
包含
23 行增加
和
0 行删除
flutter/sherpa_onnx/lib/src/audio_tagging.dart
flutter/sherpa_onnx/lib/src/keyword_spotter.dart
flutter/sherpa_onnx/lib/src/offline_recognizer.dart
flutter/sherpa_onnx/lib/src/offline_speaker_diarization.dart
flutter/sherpa_onnx/lib/src/online_recognizer.dart
flutter/sherpa_onnx/lib/src/punctuation.dart
flutter/sherpa_onnx/lib/src/speaker_identification.dart
flutter/sherpa_onnx/lib/src/tts.dart
flutter/sherpa_onnx/lib/src/vad.dart
flutter/sherpa_onnx/lib/src/audio_tagging.dart
查看文件 @
0a43e9c
...
...
@@ -62,6 +62,8 @@ class AudioEvent {
}
class
AudioTagging
{
AudioTagging
.
fromPtr
({
required
this
.
ptr
,
required
this
.
config
});
AudioTagging
.
_
({
required
this
.
ptr
,
required
this
.
config
});
// The user has to invoke AudioTagging.free() to avoid memory leak.
...
...
flutter/sherpa_onnx/lib/src/keyword_spotter.dart
查看文件 @
0a43e9c
...
...
@@ -53,6 +53,8 @@ class KeywordResult {
}
class
KeywordSpotter
{
KeywordSpotter
.
fromPtr
({
required
this
.
ptr
,
required
this
.
config
});
KeywordSpotter
.
_
({
required
this
.
ptr
,
required
this
.
config
});
/// The user is responsible to call the OnlineRecognizer.free()
...
...
flutter/sherpa_onnx/lib/src/offline_recognizer.dart
查看文件 @
0a43e9c
...
...
@@ -227,6 +227,8 @@ class OfflineRecognizerResult {
}
class
OfflineRecognizer
{
OfflineRecognizer
.
fromPtr
({
required
this
.
ptr
,
required
this
.
config
});
OfflineRecognizer
.
_
({
required
this
.
ptr
,
required
this
.
config
});
void
free
()
{
...
...
flutter/sherpa_onnx/lib/src/offline_speaker_diarization.dart
查看文件 @
0a43e9c
...
...
@@ -94,6 +94,9 @@ class OfflineSpeakerDiarizationConfig {
}
class
OfflineSpeakerDiarization
{
OfflineSpeakerDiarization
.
fromPtr
(
{
required
this
.
ptr
,
required
this
.
config
,
required
this
.
sampleRate
});
OfflineSpeakerDiarization
.
_
(
{
required
this
.
ptr
,
required
this
.
config
,
required
this
.
sampleRate
});
...
...
flutter/sherpa_onnx/lib/src/online_recognizer.dart
查看文件 @
0a43e9c
...
...
@@ -162,6 +162,8 @@ class OnlineRecognizerResult {
}
class
OnlineRecognizer
{
OnlineRecognizer
.
fromPtr
({
required
this
.
ptr
,
required
this
.
config
});
OnlineRecognizer
.
_
({
required
this
.
ptr
,
required
this
.
config
});
/// The user is responsible to call the OnlineRecognizer.free()
...
...
flutter/sherpa_onnx/lib/src/punctuation.dart
查看文件 @
0a43e9c
...
...
@@ -36,6 +36,8 @@ class OfflinePunctuationConfig {
}
class
OfflinePunctuation
{
OfflinePunctuation
.
fromPtr
({
required
this
.
ptr
,
required
this
.
config
});
OfflinePunctuation
.
_
({
required
this
.
ptr
,
required
this
.
config
});
// The user has to invoke OfflinePunctuation.free() to avoid memory leak.
...
...
flutter/sherpa_onnx/lib/src/speaker_identification.dart
查看文件 @
0a43e9c
...
...
@@ -25,6 +25,8 @@ class SpeakerEmbeddingExtractorConfig {
}
class
SpeakerEmbeddingExtractor
{
SpeakerEmbeddingExtractor
.
fromPtr
({
required
this
.
ptr
,
required
this
.
dim
});
SpeakerEmbeddingExtractor
.
_
({
required
this
.
ptr
,
required
this
.
dim
});
/// The user is responsible to call the SpeakerEmbeddingExtractor.free()
...
...
@@ -101,6 +103,8 @@ class SpeakerEmbeddingExtractor {
}
class
SpeakerEmbeddingManager
{
SpeakerEmbeddingManager
.
fromPtr
({
required
this
.
ptr
,
required
this
.
dim
});
SpeakerEmbeddingManager
.
_
({
required
this
.
ptr
,
required
this
.
dim
});
// The user has to use SpeakerEmbeddingManager.free() to avoid memory leak
...
...
flutter/sherpa_onnx/lib/src/tts.dart
查看文件 @
0a43e9c
...
...
@@ -82,6 +82,8 @@ class GeneratedAudio {
}
class
OfflineTts
{
OfflineTts
.
fromPtr
({
required
this
.
ptr
,
required
this
.
config
});
OfflineTts
.
_
({
required
this
.
ptr
,
required
this
.
config
});
/// The user is responsible to call the OfflineTts.free()
...
...
flutter/sherpa_onnx/lib/src/vad.dart
查看文件 @
0a43e9c
...
...
@@ -54,6 +54,8 @@ class SpeechSegment {
}
class
CircularBuffer
{
CircularBuffer
.
fromPtr
({
required
this
.
ptr
});
CircularBuffer
.
_
({
required
this
.
ptr
});
/// The user has to invoke CircularBuffer.free() on the returned instance
...
...
@@ -115,6 +117,8 @@ class CircularBuffer {
}
class
VoiceActivityDetector
{
VoiceActivityDetector
.
fromPtr
({
required
this
.
ptr
,
required
this
.
config
});
VoiceActivityDetector
.
_
({
required
this
.
ptr
,
required
this
.
config
});
// The user has to invoke VoiceActivityDetector.free() to avoid memory leak.
...
...
请
注册
或
登录
后发表评论