/// MiniMax TTS 配置
///
/// 注意：客户端直连会暴露 API Key，建议通过 --dart-define 注入并做轮换。
class MinimaxConfig {
  MinimaxConfig._();

  /// WebSocket endpoint
  static const String wsUrl = 'wss://api.minimax.io/ws/v1/t2a_v2';

  /// API Key (临时写死，用于本地调试)
  static const String apiKey =
      'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJHcm91cE5hbWUiOiJ2YmlvZGJkcCIsIlVzZXJOYW1lIjoidHNldCIsIkFjY291bnQiOiIiLCJTdWJqZWN0SUQiOiIxOTkyOTAyNTAzMzg5MjA1NDY3IiwiUGhvbmUiOiIiLCJHcm91cElEIjoiMTk5MjkwMjUwMzM4MDgyMDk1NSIsIlBhZ2VOYW1lIjoiIiwiTWFpbCI6InZiaW9kYmRwQGdtYWlsLmNvbSIsIkNyZWF0ZVRpbWUiOiIyMDI1LTEyLTA2IDE1OjQzOjUxIiwiVG9rZW5UeXBlIjoxLCJpc3MiOiJtaW5pbWF4In0.hf1M4cPe27Sz_QeSyYODqM6yrN8aQ68nRwYB7iQ3uO5nu0NSN7qHQRVxAt2tVuoOf503SEx5F-PfYyC85OFJFhWNNhhDuFuxPIz97LVz1oQUlIejZ_BmCMj4iWwGXTUmEugGK1lzcsI6eJz8eRjQHsxOgJJmxPLXWHTPs1gDqtnckAgjOBRQJSadP58Xe9EdI6n-2_SL_ni3Tqm3LuWq9tUPJa5WgDMZX9IDK7XXyZy0i1GoSXmp8P1O1JmIecBVUoCzyYFwWW787BNdYiyEV3UrFjC_4onJ8Tzh-eGq84-rtxBR5FKO2MpNU_I0xI-W3YJxOEl_JPXXGgX5ASTKNw';

  /// 默认模型
  static const String model = 'speech-2.6-turbo';

  /// 默认音色（MiniMax 系统音色 - 青涩青年音色）
  static const String defaultVoiceId = 'Chinese (Mandarin)_BashfulGirl';

  /// 默认音频参数 (PCM 格式用于流式播放)
  static const int sampleRate = 32000;
  static const int channels = 1;
  static const String format = 'pcm';

  static bool get isEnabled => apiKey.isNotEmpty;
}
