mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-10 07:47:29 -04:00
feat(gallery): declare speaker_recognition on parakeet-cpp bundles
The small and standard bundles have a voice component, and parakeet-cpp-realtime-scene-speakers loads a speaker encoder, so they can serve /v1/voice/* and the realtime voice_recognition stage. Add the usecase to their known_usecases and pin it in the gallery tests. Assisted-by: Claude Code:claude-sonnet-5-5
This commit is contained in:
2 files changed
+15
-2
No files matched your search
@@ -25,12 +25,12 @@ var _ = Describe("gallery/index.yaml parakeet-cpp bundle entries", func() {
|
||||
"parakeet-cpp-bundle-small": {
|
||||
"parakeet-cpp/parakeet-bundle-small.gguf",
|
||||
"5f2c6697eb08d4d67e858692d4223a9d911aacc51ae16cf2aee9e760f8a2269a",
|
||||
[]string{"transcript", "vad", "diarization", "sound_classification"}, full,
|
||||
[]string{"transcript", "vad", "diarization", "sound_classification", "speaker_recognition"}, full,
|
||||
},
|
||||
"parakeet-cpp-bundle-standard": {
|
||||
"parakeet-cpp/parakeet-bundle-standard.gguf",
|
||||
"85304e3bb49de04b84a7d0c76baaa7dedd1a0c02c0920078a99f92c00cffbdf6",
|
||||
[]string{"transcript", "vad", "diarization", "sound_classification"}, full,
|
||||
[]string{"transcript", "vad", "diarization", "sound_classification", "speaker_recognition"}, full,
|
||||
},
|
||||
"parakeet-cpp-bundle-moondream-redux": {
|
||||
"parakeet-cpp/parakeet-bundle-moondream-redux.gguf",
|
||||
@@ -80,6 +80,16 @@ var _ = Describe("gallery/index.yaml parakeet-cpp bundle entries", func() {
|
||||
}
|
||||
})
|
||||
|
||||
It("declares speaker recognition only where the model has a speaker encoder", func() {
|
||||
all := entries()
|
||||
for _, name := range []string{"parakeet-cpp-bundle-small", "parakeet-cpp-bundle-standard", "parakeet-cpp-realtime-scene-speakers"} {
|
||||
Expect(all[name].Overrides["known_usecases"]).To(ContainElement("speaker_recognition"), name)
|
||||
}
|
||||
for _, name := range []string{"parakeet-cpp-bundle-moondream-redux", "parakeet-cpp-tdt_ctc-110m"} {
|
||||
Expect(all[name].Overrides["known_usecases"]).ToNot(ContainElement("speaker_recognition"), name)
|
||||
}
|
||||
})
|
||||
|
||||
It("states that the licence is per component and names each one", func() {
|
||||
all := entries()
|
||||
for name := range want {
|
||||
|
||||
Reference in new issue
Block a user