speechToText method

Future<Map<String, dynamic>> speechToText(
  1. Speech2Text schema
)

Implementation

Future<Map<String, dynamic>> speechToText(Speech2Text schema) async {
  // This uses different base URL directly
  final endpoint = 'https://modelslab.com/api/v6/whisper/transcribe';
  return await _post(endpoint, data: schema.toJson());
}