Skip to content

NodeJS Client doesn't work #2

Open
@wisejayden

Description

@wisejayden

Hey there,
It's quite a shame that this technology is so difficult to use and integrate into our architecture. I have tried to use the deepgram-voice-agent-demo, but that has problems with the deployment and now I'm trying your official nodejs-client and it doesn't work.

First of all, it's unclear what the VOICE_AGENT_URL env variable is. Some further documentation for this would be appreciated.

Nevertheless I've decided to go forward with the following value as a guess, considering I found it in a Developer Tools section on the deepgram dashboard (see screenshot) - https://api.deepgram.com/v1/listen?model=nova-2&smart_format=true

Image

Now after setting the env variables for the project I get the following error on start:

[2025-02-12T16:14:56.135Z] Got text message: {"type":"Error","variant":"SchemaError","description":"Could not deserialize last text message: unknown variant `SettingsConfiguration`, expected one of `CloseStream`, `Configure`, `Sync`, `KeepAlive`, `Finalize` at line 1 column 31","message":"{\"type\":\"SettingsConfiguration\",\"audio\":{\"input\":{\"encoding\":\"linear16\",\"sample_rate\":16000},\"output\":{\"encoding\":\"linear16\",\"sample_rate\":48000,\"container\":\"none\"}},\"agent\":{\"listen\":{\"model\":\"nova-2\"},\"think\":{\"provider\":{\"type\":\"open_ai\"},\"model\":\"gpt-3.5-turbo\",\"instructions\":\"You are a helpful assistant.\"},\"speak\":{\"model\":\"aura-asteria-en\"}}}"}
[2025-02-12T16:15:04.041Z] Got text message: {"type":"Results","channel_index":
[0,1],"duration":0.4090625,"start":0.0,"is_final":true,"speech_final":false,"channel":{"alternatives":[{"transcript":"","confidence":0.0,"words":[]}]},"metadata":{"request_id":"8e69f64f-c1b6-4233-ad7f-781e34f9157f","model_info":{"name":"2-general-nova","version":"2024-01-11.36317","arch":"nova-2"},"model_uuid":"1dbdfb4d-85b2-4659-9831-16b3c76229aa"},"from_finalize":false}
[2025-02-12T16:15:34.043Z] Got text message: {"type":"Metadata","transaction_key":"deprecated","request_id":"8e69f64f-c1b6-4233-ad7f-781e34f9157f","sha256":"incomplete","created":"2025-02-12T16:15:03.946Z","duration":0.4090625,"channels":1,"models":["1dbdfb4d-85b2-4659-9831-16b3c76229aa"],"model_info":{"1dbdfb4d-85b2-4659-9831-16b3c76229aa":{"name":"2-general-nova","version":"2024-01-11.36317","arch":"nova-2"}}}

Thinking it may have something to do with an invalid configuration set in the project, I have also tried using the configuration found in the playground, but it still doesn't work.

Looking forward to your assistance in this matter.

P.S. It may also be worth mentioning in your ReadMe that the brew package sox is required for use on Mac..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions