Not able to get transcript even with audio sent #1076
Replies: 3 comments
-
Thanks for asking your question. Please be sure to reply with as much detail as possible so the community can assist you efficiently. |
Beta Was this translation helpful? Give feedback.
-
Hey there! It looks like you haven't connected your GitHub account to your Deepgram account. You can do this at https://community.deepgram.com - being verified through this process will allow our team to help you in a much more streamlined fashion. |
Beta Was this translation helpful? Give feedback.
-
It looks like we're missing some important information to help debug your issue. Would you mind providing us with the following details in a reply?
|
Beta Was this translation helpful? Give feedback.
-
Hi
I am using python. Just started with first code. I am using fastAPI endpoint and using Deepgram SDK for transcription. Here is the
code
I am printing result.channel.alternatives[0].transcript inside onMessage., This is what i am getting.
I checked the data and it is binary as well.
result.channel.alternatives[0].transcript
{
"alternatives": [
{
"transcript": "",
"confidence": 0.0,
"words": []
}
]
}
{
"transcript": "",
"confidence": 0.0,
"words": []
}
`
#Not including imports.
router = APIRouter()
deepgram_service = DeepgramService()
config = DeepgramClientOptions(
options={"keepalive": "true"} # Comment this out to see the effect of not using keepalive
)
dgClient = DeepgramClient(settings.DEEPGRAM_API_KEY, config )
@router.websocket("/ws/transcribe")
async def websocket_endpoint(websocket: WebSocket):
await websocket.accept()
try:
# deepgram_socket = await process_audio(websocket)
HEre is the log
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started reloader process [10392] using StatReload
INFO: Started server process [32968]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: ('127.0.0.1', 51050) - "WebSocket /api/ws/transcribe" [accepted]
Acquired socket object....
Registered handlers with socket....
Socket connection started....
INFO: connection open
Inside On_Message
{
"alternatives": [
{
"transcript": "",
"confidence": 0.0,
"words": []
}
]
}
{
"transcript": "",
"confidence": 0.0,
"words": []
}
Inside On_Message
{
"alternatives": [
{
"transcript": "",
"confidence": 0.0,
"words": []
}
]
}
{
"transcript": "",
"confidence": 0.0,
"words": []
}
Inside On_Message
{
"alternatives": [
{
"transcript": "",
"confidence": 0.0,
"words": []
}
]
}
{
"transcript": "",
"confidence": 0.0,
"words": []
}
Inside On_Message
{
"alternatives": [
{
"transcript": "",
"confidence": 0.0,
"words": []
}
]
}
{
"transcript": "",
"confidence": 0.0,
"words": []
}
Beta Was this translation helpful? Give feedback.
All reactions