AudioTranslationRequest.fromFile constructor

AudioTranslationRequest.fromFile(
  1. String filePath, {
  2. String? model,
  3. String? format,
  4. String? prompt,
  5. String? responseFormat,
  6. double? temperature,
})

Create translation request from file

Implementation

factory AudioTranslationRequest.fromFile(
  String filePath, {
  String? model,
  String? format,
  String? prompt,
  String? responseFormat,
  double? temperature,
}) =>
    AudioTranslationRequest(
      filePath: filePath,
      model: model,
      format: format,
      prompt: prompt,
      responseFormat: responseFormat,
      temperature: temperature,
    );