Skip to content

DeepgramFluxSTTService breaks when passing a keyterm with space #3013

@julienvantyghem

Description

@julienvantyghem

pipecat version

0.0.92

Python version

3.12.10

Operating System

Ubuntu 24.04

Issue description

When passing a keyterm containing a space to the deepgram service, initialization fails at pipeline launch with

DeepgramFluxSTTService#0 initialization error: server rejected WebSocket connection: HTTP 400

Reproduction steps

  1. Create a pipeline with the stt service as such
stt = DeepgramFluxSTTService(
    api_key=os.getenv("DEEPGRAM_API_KEY"),
    params=DeepgramFluxSTTService.InputParams(
        keyterm=["composed keyterm"]
    ),
)
  1. Launch the pipeline

Expected behavior

Keyterms containing spaces can be passed as DeepgramFluxService input params, as they are supported by Nova-3.

For context, keyterms containing spaces are currently properly supported by DeepgramSTTService

Actual behavior

DeepgramFluxService fails on initialization when one of the passed keyterms contains a space.

Logs

DeepgramFluxSTTService#0 initialization error: server rejected WebSocket connection: HTTP 400

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions