deepgram / deepgram-python-sdk

Official Python SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
218 stars 58 forks source link

adds feature extra to metadata #274

Closed SandraRodgers closed 8 months ago

SandraRodgers commented 8 months ago

Proposed changes

This adds the feature extra to the metadata response. Users can use the feature like this:

options = LiveOptions(
            extra="test:one",
        )

They will see a response like this:

MetadataResponse(type='Metadata', transaction_key='deprecated', request_id='2a23a737-c6bf-4ca6-bd29-0495049015e4', sha256='455ffcc8068f5ca8248e6eb47967109deeb5ad949b60f119960cd81a1bb7d060', created='2024-01-25T20:09:06.990Z', duration=10.754625, channels=1, models=['96a295ec-6336-43d5-b1cb-1e48b5e6d9a4'], model_info={'96a295ec-6336-43d5-b1cb-1e48b5e6d9a4': ModelInfo(name='general', version='2023-02-22.3', arch='base')}, extra="{'test': 'one'}")

I tested these with the prerecorded and live examples.

Types of changes

What types of changes does your code introduce to the community Python SDK? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

dvonthenen commented 8 months ago

woot woot!