Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Realtime: ASR EOU language tags leak into the LLM conversation (unintended reply-language switching)

オープン 初心者向け
#12,748 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@nexxtmobile がすでに取り組んでいます。

2026年10月17日 から。

  • #12750 @nexxtmobile による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go

調査の方向性

確定済みのユーザートランスクリプトから appendUserItem/generateResponse までの realtime パイプラインを追跡し、input_audio_transcription イベントの経路と比較してください。イベントの生のトランスクリプトは変更せず、LLM コンテキストに使用されるトランスクリプトに EOU 言語タグが含まれないようにしてください。不一致のタグが付いた短い発話で確認してください。

索引モデルが issue の本文から書いたものです。

説明

area/api bug unconfirmed

Bug

ASR backends like Nemotron-3.5 append end-of-utterance language tags to
transcripts ("Hallo. <en-US>", "I would like to cancel my contract. <en-US> Can you help me with that? <de-DE>").

In the realtime pipeline the committed transcript is used verbatim for the
LLM conversation (the user item's Transcript field, which becomes the user
message in the LLM request). The per-utterance tag is unreliable for short
or ambiguous utterances
(a German "Hallo." is tagged <en-US>; the same
uplink clip transcribes as "My name is Benjamin Zimmer. <en-US>" in one
run and "Mein Name ist Benjamin Zimmer. <de-DE>" in another). LLMs treat
the tag as a language signal and switch the reply language against the
session instructions — observed: a German call where the caller says
"Hallo" (tagged <en-US>) gets the reply "Hello. What is your phone number?".

Reproduction

  1. Realtime session with input_audio_transcription on a Nemotron-3.5
    (or similar) backend.
  2. Commit a short ambiguous utterance whose EOU tag does not match the
    conversation language.
  3. The LLM reply switches language (or the reply behavior becomes
    tag-dependent), even though the instruction is to keep the conversation
    language.

Proposed fix

Strip the EOU language tags from the transcript that goes to
appendUserItem/generateResponse (the LLM context). The emitted
input_audio_transcription event keeps the raw transcript (debugging /
client display). PR follows.

主要言語
Go
スター
49.8k
フォーク
4.5k
平均マージ
19時間 42分
マージ済み PR(30日)
354

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mudler/LocalAI のほかの issue

mudler/LocalAI の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。