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

adds captions library and example #184

Closed
wants to merge 1 commit into from
Closed

Conversation

SandraRodgers
Copy link
Contributor

This adds dependency for deepgram-captions. There is an example file and a readme update to show how to create SRT and webVTT captions from the SDK.

Copy link
Contributor

@davidvonthenen davidvonthenen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed comment

import os
import json
from dotenv import load_dotenv
from deepgram_captions import DeepgramConverter, webvtt, srt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this go in the captions repo under its own examples folder?

@davidvonthenen
Copy link
Contributor

We had discussed this, including this would create a circular dependency. Installing the captions package wouldn't turn install the deepgram SDK based on the version it defined in its requirements/setup definitions.

You can find an example of a captions implementation in source in the repo:
https://github.com/deepgram/deepgram-python-captions/blob/main/example.py

@davidvonthenen davidvonthenen deleted the sr/add-captions branch February 22, 2024 17:47
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

Successfully merging this pull request may close these issues.

2 participants