def speed_value(speed: int):
        """Turn special token of speed value."""
        speed = max(0, int(speed))
        speed = min(10, int(speed))
        return f"<|speed_value_{speed}|>"
Turn special token of speed value.
mlx_audio/tts/models/spark/utils/token_parser.py