varapiKey=Environment.GetEnvironmentVariable("SPEECHMATICS_API_KEY")is{Length:>0}value?value:thrownewAssertInconclusiveException("SPEECHMATICS_API_KEY environment variable is not found.");usingvarclient=newSpeechmaticsClient(apiKey);// Create a transcription job with a URL-based audio source.varconfigJson="""{"type":"transcription","transcription_config":{"language":"en"},"fetch_data":{"url":"https://github.com/tryAGI/Speechmatics/raw/main/assets/test.mp3"}}""";varcreateResponse=awaitclient.CreateJobsAsync(config:configJson);// Poll for job completion.JobDetailsjob;do{awaitTask.Delay(TimeSpan.FromSeconds(2));varjobResponse=awaitclient.GetJobsByJobidAsync(jobid:createResponse.Id);job=jobResponse.Job;}while(job.Status==JobDetailsStatus.Running);// Retrieve the transcript.vartranscript=awaitclient.GetJobsByJobidTranscriptAsync(jobid:createResponse.Id,format:GetJobsTranscriptFormat.JsonV2);