usingvarclient=newGladiaClient(apiKey);// List recent pre-recorded transcription jobs.varresponse=awaitclient.PreRecordedV2.PreRecordedControllerGetPreRecordedJobsV2Async(limit:10);
Speech To Text Client Get Text Async
1 2 3 4 5 6 7 8 910111213141516
usingvarapi=newGladiaClient(apiKey);ISpeechToTextClientspeechClient=api;// Transcribe audio using the MEAI ISpeechToTextClient interface.// The client uploads the audio stream and polls until transcription is complete.usingvarhttpClient=newHttpClient();awaitusingvaraudioStream=awaithttpClient.GetStreamAsync("https://cdn.openai.com/API/docs/audio/alloy.wav");varms=newMemoryStream();awaitaudioStream.CopyToAsync(ms);ms.Position=0;varresponse=awaitspeechClient.GetTextAsync(ms);Console.WriteLine($"Text: {response.Text}");
Speech To Text Client Get Service Metadata
12345
usingvarapi=newGladiaClient("dummy-key");ISpeechToTextClientspeechClient=api;// Retrieve metadata about the speech-to-text provider.varmetadata=speechClient.GetService<SpeechToTextClientMetadata>();
Speech To Text Client Get Service Self
12345
usingvarapi=newGladiaClient("dummy-key");ISpeechToTextClientspeechClient=api;// Access the underlying GladiaClient from the MEAI interface.varself=speechClient.GetService<GladiaClient>();