    def encode(self, wav: torch.Tensor) -> torch.Tensor:
        """Encode the audio waveform.

        Args:
            wav: A tensor representing the audio waveform.

        Returns:
            A tensor representing the encoded audio.
        """
        return self.codec.encode(wav.to(self.device))
Encode the audio waveform.

Args:
wav: A tensor representing the audio waveform.

Returns:
A tensor representing the encoded audio.
models/tts/debatts/utils/tokenizer.py