Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deepgram's keyterms should be keyterm, not the plural #1533

Closed
wdhwg001 opened this issue Feb 20, 2025 · 0 comments · Fixed by #1535
Closed

Deepgram's keyterms should be keyterm, not the plural #1533

wdhwg001 opened this issue Feb 20, 2025 · 0 comments · Fixed by #1535
Labels
bug Something isn't working

Comments

@wdhwg001
Copy link
Contributor

livekit-plugins-deepgram = "0.6.19"

See: https://developers.deepgram.com/docs/keyterm

It's in SpeechStream._connect_ws:

    async def _connect_ws(self) -> aiohttp.ClientWebSocketResponse:
        live_config: dict[str, Any] = {
            "model": self._opts.model,
            "punctuate": self._opts.punctuate,
            "smart_format": self._opts.smart_format,
            "no_delay": self._opts.no_delay,
            "interim_results": self._opts.interim_results,
            "encoding": "linear16",
            "vad_events": True,
            "sample_rate": self._opts.sample_rate,
            "channels": self._opts.num_channels,
            "endpointing": False
            if self._opts.endpointing_ms == 0
            else self._opts.endpointing_ms,
            "filler_words": self._opts.filler_words,
            "profanity_filter": self._opts.profanity_filter,
        }
        if self._opts.keywords:
            live_config["keywords"] = self._opts.keywords
        if self._opts.keyterms:
            live_config["keyterms"] = self._opts.keyterms  # <-- should be `keyterm`, not `keyterms`

        if self._opts.language:
            live_config["language"] = self._opts.language
@wdhwg001 wdhwg001 added the bug Something isn't working label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant