AssemblyAI / assemblyai-python-sdk

AssemblyAI's Official Python SDK
https://assemblyai.com
MIT License
138 stars 16 forks source link

Return the auto detected language (and confidence) #90

Open nilsjesper opened 5 days ago

nilsjesper commented 5 days ago

We're using language_detection=True, when generating transcripts but the return object doesn't seem to specify the detected language or the confidence. Both of these are present in the raw API request if you use the REST API. Would it be possible to add these to the sdk as well?

ploeber commented 5 days ago

Hi @nilsjesper . Can you check if you're on the latest SDK version? Those fields should also be available in the SDK, e.g.

print(transcript.json_response["language_confidence"])