You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sample_rate is passed from DeepgramSTTService(STTService) to the parent class (STTService) in the init method
DeepgramSTTService's start method tries to access sample rate:
async def start(self, frame: StartFrame):
await super().start(frame)
self._settings["sample_rate"] = self.sample_rate # <-- THIS IS THE ISSUE
await self._connect()
STTService class in ai_services.py did not initialize a sample_rate attribute in its init method -> throws error 'DeepgramSTTService' object has no attribute 'sample_rate'
Suggested Solution
In STTService, initialize sample rate analog to the TTSService class: self._sample_rate: int = sample_rate
The text was updated successfully, but these errors were encountered:
Problem Root Cause
start
method tries to access sample rate:'DeepgramSTTService' object has no attribute 'sample_rate'
Suggested Solution
In STTService, initialize sample rate analog to the
TTSService
class:self._sample_rate: int = sample_rate
The text was updated successfully, but these errors were encountered: