Skip to content

Commit

Permalink
Merge pull request #284 from bolna-ai/feat/boodhi-integration
Browse files Browse the repository at this point in the history
make sure for telephone input sampling rate is always 8k KHz
  • Loading branch information
marmikcfc authored Jun 24, 2024
2 parents ae066a6 + c27f76c commit 72b0356
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 72b0356

Please sign in to comment.