import 'dart:io';

abstract final class AppConstants {
  static String get defaultHost =>
      Platform.isAndroid ? '192.168.199.195' : '127.0.0.1';
  static const defaultPort = 8765;
  static const targetSampleRate = 16000;
  static const bufferSize = 4096;
  static const transcribeInterval = Duration(seconds: 2);
  static const audioSendInterval = Duration(milliseconds: 300);
  static const maxAudioChunkBytes = 16000;
  static const pingInterval = Duration(seconds: 30);
  static const reconnectBaseDelay = Duration(seconds: 1);
  static const reconnectMaxDelay = Duration(seconds: 30);
  static const appName = '检测数据采集';
  static const defaultLiveKitUrl = 'ws://localhost:7888';
}
