vocode-python icon indicating copy to clipboard operation
vocode-python copied to clipboard

[Bug]: Issue in recording calls

Open ks-voicing-ai opened this issue 1 year ago • 1 comments

Brief Description

Issue: not able to get recording of calls Steps to reproduce:

  1. Took a fresh pull of the main branch
  2. Updated the env file with all my working credentials and a local host dummy BASE_URL=http://127.0.0.1:1453
  3. Edited the main.py file in "https://github.com/vocodedev/vocode-core/blob/main/apps/telephony_app/main.py" with
twilio_config=TwilioConfig(
                account_sid=os.environ["TWILIO_ACCOUNT_SID"],
                auth_token=os.environ["TWILIO_AUTH_TOKEN"],
                record = True
                )

4.Edited the outbound_call.py file in "https://github.com/vocodedev/vocode-core/blob/main/apps/telephony_app/outbound_call.py" with my Twilio phone numbers and my number and updated the same TwilioConfig with record = True 5. Ran the main.py with uvicorn service 6. ran outbound_call.py and i received the call, but was not able to find the recording in my Twilio account.

can you guys please help?

LLM

GPT-4

Transcription Services

Deepgram

Synthesis Services

Eleven Labs

Telephony Services

Twilio

Conversation Type and Platform

nothing specific, it was as per the default prompt in outbound_call.py

Steps to Reproduce

Steps to reproduce:

  1. Took a fresh pull of the main branch
  2. Updated the env file with all my working credentials and a local host dummy BASE_URL=http://127.0.0.1:1453
  3. Edited the main.py file in "https://github.com/vocodedev/vocode-core/blob/main/apps/telephony_app/main.py" with
twilio_config=TwilioConfig(
                account_sid=os.environ["TWILIO_ACCOUNT_SID"],
                auth_token=os.environ["TWILIO_AUTH_TOKEN"],
                record = True
                )

4.Edited the outbound_call.py file in "https://github.com/vocodedev/vocode-core/blob/main/apps/telephony_app/outbound_call.py" with my Twilio phone numbers and my number and updated the same TwilioConfig with record = True 5. Ran the main.py with uvicorn service 6. ran outbound_call.py and i received the call, but was not able to find the recording in my Twilio account.

Expected Behavior

recording should be available in Twilio account but it was not happening in my case

Screenshots

image

ks-voicing-ai avatar Jan 15 '25 05:01 ks-voicing-ai

You’ll need extra code to be able to record inbound phone calls but to record outbound calls

You need to add something like this below directly in the telephony_params

outbound_call = OutboundCall(
            telephony_config=...,
            telephony_params={
                "Record": "True",
                "RecordingChannels": "dual",
    },
 )

steinathan avatar Jan 19 '25 22:01 steinathan