Skip to content

Commit

Permalink
update for vad and speaker identificaiton
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Mar 30, 2024
1 parent 31a27cc commit af41acd
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
34 changes: 34 additions & 0 deletions sherpa_onnx/sherpa_onnx_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,41 @@ type OfflineTtsVitsModelConfig = sherpa.OfflineTtsVitsModelConfig
type OfflineTtsModelConfig = sherpa.OfflineTtsModelConfig
type OfflineTtsConfig = sherpa.OfflineTtsConfig
type GeneratedAudio = sherpa.GeneratedAudio
type Wave = sherpa.Wave
type OfflineTts = sherpa.OfflineTts

var DeleteOfflineTts = sherpa.DeleteOfflineTts
var NewOfflineTts = sherpa.NewOfflineTts

type SileroVadModelConfig = sherpa.SileroVadModelConfig
type VadModelConfig = sherpa.VadModelConfig
type CircularBuffer = sherpa.CircularBuffer

var DeleteCircularBuffer = sherpa.DeleteCircularBuffer
var NewCircularBuffer = sherpa.NewCircularBuffer

type SpeechSegment = sherpa.SpeechSegment
type VoiceActivityDetector = sherpa.VoiceActivityDetector

var NewVoiceActivityDetector = sherpa.NewVoiceActivityDetector
var DeleteVoiceActivityDetector = sherpa.DeleteVoiceActivityDetector

type SpokenLanguageIdentificationWhisperConfig = sherpa.SpokenLanguageIdentificationWhisperConfig
type SpokenLanguageIdentificationConfig = sherpa.SpokenLanguageIdentificationConfig
type SpokenLanguageIdentification = sherpa.SpokenLanguageIdentification
type SpokenLanguageIdentificationResult = sherpa.SpokenLanguageIdentificationResult

var NewSpokenLanguageIdentification = sherpa.NewSpokenLanguageIdentification
var DeleteSpokenLanguageIdentification = sherpa.DeleteSpokenLanguageIdentification

type SpeakerEmbeddingExtractorConfig = sherpa.SpeakerEmbeddingExtractorConfig
type SpeakerEmbeddingExtractor = sherpa.SpeakerEmbeddingExtractor

var NewSpeakerEmbeddingExtractor = sherpa.NewSpeakerEmbeddingExtractor
var DeleteSpeakerEmbeddingExtractor = sherpa.DeleteSpeakerEmbeddingExtractor

type SpeakerEmbeddingManager = sherpa.SpeakerEmbeddingManager

var NewSpeakerEmbeddingManager = sherpa.NewSpeakerEmbeddingManager
var DeleteSpeakerEmbeddingManager = sherpa.DeleteSpeakerEmbeddingManager
var ReadWave = sherpa.ReadWave
34 changes: 34 additions & 0 deletions sherpa_onnx/sherpa_onnx_macos.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,41 @@ type OfflineTtsVitsModelConfig = sherpa.OfflineTtsVitsModelConfig
type OfflineTtsModelConfig = sherpa.OfflineTtsModelConfig
type OfflineTtsConfig = sherpa.OfflineTtsConfig
type GeneratedAudio = sherpa.GeneratedAudio
type Wave = sherpa.Wave
type OfflineTts = sherpa.OfflineTts

var DeleteOfflineTts = sherpa.DeleteOfflineTts
var NewOfflineTts = sherpa.NewOfflineTts

type SileroVadModelConfig = sherpa.SileroVadModelConfig
type VadModelConfig = sherpa.VadModelConfig
type CircularBuffer = sherpa.CircularBuffer

var DeleteCircularBuffer = sherpa.DeleteCircularBuffer
var NewCircularBuffer = sherpa.NewCircularBuffer

type SpeechSegment = sherpa.SpeechSegment
type VoiceActivityDetector = sherpa.VoiceActivityDetector

var NewVoiceActivityDetector = sherpa.NewVoiceActivityDetector
var DeleteVoiceActivityDetector = sherpa.DeleteVoiceActivityDetector

type SpokenLanguageIdentificationWhisperConfig = sherpa.SpokenLanguageIdentificationWhisperConfig
type SpokenLanguageIdentificationConfig = sherpa.SpokenLanguageIdentificationConfig
type SpokenLanguageIdentification = sherpa.SpokenLanguageIdentification
type SpokenLanguageIdentificationResult = sherpa.SpokenLanguageIdentificationResult

var NewSpokenLanguageIdentification = sherpa.NewSpokenLanguageIdentification
var DeleteSpokenLanguageIdentification = sherpa.DeleteSpokenLanguageIdentification

type SpeakerEmbeddingExtractorConfig = sherpa.SpeakerEmbeddingExtractorConfig
type SpeakerEmbeddingExtractor = sherpa.SpeakerEmbeddingExtractor

var NewSpeakerEmbeddingExtractor = sherpa.NewSpeakerEmbeddingExtractor
var DeleteSpeakerEmbeddingExtractor = sherpa.DeleteSpeakerEmbeddingExtractor

type SpeakerEmbeddingManager = sherpa.SpeakerEmbeddingManager

var NewSpeakerEmbeddingManager = sherpa.NewSpeakerEmbeddingManager
var DeleteSpeakerEmbeddingManager = sherpa.DeleteSpeakerEmbeddingManager
var ReadWave = sherpa.ReadWave
34 changes: 34 additions & 0 deletions sherpa_onnx/sherpa_onnx_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,41 @@ type OfflineTtsVitsModelConfig = sherpa.OfflineTtsVitsModelConfig
type OfflineTtsModelConfig = sherpa.OfflineTtsModelConfig
type OfflineTtsConfig = sherpa.OfflineTtsConfig
type GeneratedAudio = sherpa.GeneratedAudio
type Wave = sherpa.Wave
type OfflineTts = sherpa.OfflineTts

var DeleteOfflineTts = sherpa.DeleteOfflineTts
var NewOfflineTts = sherpa.NewOfflineTts

type SileroVadModelConfig = sherpa.SileroVadModelConfig
type VadModelConfig = sherpa.VadModelConfig
type CircularBuffer = sherpa.CircularBuffer

var DeleteCircularBuffer = sherpa.DeleteCircularBuffer
var NewCircularBuffer = sherpa.NewCircularBuffer

type SpeechSegment = sherpa.SpeechSegment
type VoiceActivityDetector = sherpa.VoiceActivityDetector

var NewVoiceActivityDetector = sherpa.NewVoiceActivityDetector
var DeleteVoiceActivityDetector = sherpa.DeleteVoiceActivityDetector

type SpokenLanguageIdentificationWhisperConfig = sherpa.SpokenLanguageIdentificationWhisperConfig
type SpokenLanguageIdentificationConfig = sherpa.SpokenLanguageIdentificationConfig
type SpokenLanguageIdentification = sherpa.SpokenLanguageIdentification
type SpokenLanguageIdentificationResult = sherpa.SpokenLanguageIdentificationResult

var NewSpokenLanguageIdentification = sherpa.NewSpokenLanguageIdentification
var DeleteSpokenLanguageIdentification = sherpa.DeleteSpokenLanguageIdentification

type SpeakerEmbeddingExtractorConfig = sherpa.SpeakerEmbeddingExtractorConfig
type SpeakerEmbeddingExtractor = sherpa.SpeakerEmbeddingExtractor

var NewSpeakerEmbeddingExtractor = sherpa.NewSpeakerEmbeddingExtractor
var DeleteSpeakerEmbeddingExtractor = sherpa.DeleteSpeakerEmbeddingExtractor

type SpeakerEmbeddingManager = sherpa.SpeakerEmbeddingManager

var NewSpeakerEmbeddingManager = sherpa.NewSpeakerEmbeddingManager
var DeleteSpeakerEmbeddingManager = sherpa.DeleteSpeakerEmbeddingManager
var ReadWave = sherpa.ReadWave

0 comments on commit af41acd

Please sign in to comment.