def mel_value(mel: int):
        """Turn special token of mel scale pitch."""
        mel = max(0, int(mel))
        mel = min(1000, int(mel))
        return f"<|pitch_value_{mel}|>"
Turn special token of mel scale pitch.
mlx_audio/tts/models/spark/utils/token_parser.py