title: AWS Transcribe through AWS CLI
body: <p>I am able to use AWS S3 service through the AWS CLI like so:</p>
  
  <pre><code>aws s3 cp FileToUpload.txt s3://MyBucketName/file.txt
  </code></pre>
  
  <p>How can I make use of AWS transcribe service? Looking through google takes me to:</p>
  
  <p><a href="https://docs.aws.amazon.com/cli/latest/reference/transcribe/index.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/cli/latest/reference/transcribe/index.html</a></p>
  
  <p>But I find no examples on how to use AWS Transcribe using the CLI. I am looking for something like:</p>
  
  <pre><code>aws transcribe createJob s3://MyBucketName/audioToTranscribe.mp3
  </code></pre>
  
  <p>This does not work but I am assuming there should exists something similar.</p>
  
  <p>I was able to find an example on how to use aws transcribe through c# and it is like this:</p>
  
  <pre><code>MediaFormat mediaFormat;
  
  if (s3BucketNameFollowedByFullPathToAudio.EndsWith(".mp3"))
  {
      mediaFormat = MediaFormat.Mp3;
  }
  else if (s3BucketNameFollowedByFullPathToAudio.EndsWith(".wav"))
  {
      mediaFormat = MediaFormat.Wav;
  }
  else
  {
  
      throw new Exception();
  }
  
  var test = transcribeClient.StartTranscriptionJob(new StartTranscriptionJobRequest()
  {
      LanguageCode = LanguageCode.EnUS,
      TranscriptionJobName = jobId,
      Media = new Media()
      {
  
  
          MediaFileUri = "https://s3.us-east-2.amazonaws.com/" + s3BucketNameFollowedByFullPathToAudio
  
      },
      MediaFormat = mediaFormat, // MediaFormat.Wav,
  });
  </code></pre>
  
  <p><strong>How can I do this through the aws CLI ?</strong></p>