async def start(self, frame: StartFrame):
        """Initialize the service upon receiving a StartFrame."""
        await super().start(frame)
        self._output_format = output_format_from_sample_rate(self.sample_rate)
        self._reset_state()
Initialize the service upon receiving a StartFrame.
src/pipecat/services/elevenlabs/tts.py