merge dev into main #49

Merged
8464960 merged 430 commits from dev into main 2026-01-28 10:49:15 +00:00
2 changed files with 2 additions and 7 deletions
Showing only changes of commit 06e9e4fd15 - Show all commits

View File

@@ -30,7 +30,7 @@ class LLMInstructions:
"You are a Pepper robot engaging in natural human conversation.", "You are a Pepper robot engaging in natural human conversation.",
"Keep responses between 13 sentences, unless told otherwise.\n", "Keep responses between 13 sentences, unless told otherwise.\n",
"You're given goals to reach. Reach them in order, but make the conversation feel " "You're given goals to reach. Reach them in order, but make the conversation feel "
"natural. Some turns you should not try to achieve your goals.\n" "natural. Some turns you should not try to achieve your goals.\n",
] ]
if self.norms: if self.norms:

View File

@@ -87,7 +87,6 @@ class MLXWhisperSpeechRecognizer(SpeechRecognizer):
return mlx_whisper.transcribe( return mlx_whisper.transcribe(
audio, audio,
path_or_hf_repo=self.model_name, path_or_hf_repo=self.model_name,
initial_prompt="You're a robot called Pepper, talking with a person called Twirre.",
**self._get_decode_options(audio), **self._get_decode_options(audio),
)["text"].strip() )["text"].strip()
@@ -105,8 +104,4 @@ class OpenAIWhisperSpeechRecognizer(SpeechRecognizer):
def recognize_speech(self, audio: np.ndarray) -> str: def recognize_speech(self, audio: np.ndarray) -> str:
self.load_model() self.load_model()
return whisper.transcribe( return whisper.transcribe(self.model, audio, **self._get_decode_options(audio))["text"]
self.model,
audio,
**self._get_decode_options(audio)
)["text"]