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

BUG: TypeError in DeepgramConverter for Nova-2 Model #6

Open
MerryOscar opened this issue Apr 15, 2024 · 0 comments
Open

BUG: TypeError in DeepgramConverter for Nova-2 Model #6

MerryOscar opened this issue Apr 15, 2024 · 0 comments

Comments

@MerryOscar
Copy link

What is the current behavior?

I am seeing a TypeError when using the srt parser from the @deepgram/captions library:

TypeError: Cannot use 'in' operator to search for 'speaker' in undefined
    at DeepgramConverter.getLines (.../@deepgram/captions/src/converters/DeepgramConverter.ts:22:32)
    at srt (.../@deepgram/captions/src/index.ts:54:20)

Steps to reproduce

This error is occurring when using the deepgram nova-2 model via the REST api:

      method: 'POST',
      url: 'https://api.deepgram.com/v1/listen',
      params: {
        model: 'nova-2',
        punctuate: true,
        smart_format: true,
        paragraphs: true
      }

Expected behavior

The srt parser works on the nova-2 output without any errors

Please tell us about your environment

  • node v18.19.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant