Skip to content

Commit

Permalink
make sure for telephone input sampling rate is always 8k KHz
Browse files Browse the repository at this point in the history
  • Loading branch information
marmikcfc committed Jun 24, 2024
1 parent 1f45490 commit c27f76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bolna/transcriber/bodhi_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, telephony_provider, input_queue=None, model='hi-general-v2-8k
self.heartbeat_task = None
self.sender_task = None
self.model = "hi-general-v2-8khz"
self.sampling_rate = sampling_rate
self.sampling_rate = 8000 if telephony_provider in ["plivo", "twilio", "exotel"] else sampling_rate
self.api_key = kwargs.get("transcriber_key", os.getenv('BODHI_API_KEY'))
self.api_host = os.getenv('BODHI_HOST', 'bodhi.navana.ai')
self.transcriber_output_queue = output_queue
Expand Down

0 comments on commit c27f76c

Please sign in to comment.