.Ensure compatibility with various frameworks, including.NET 6.0,. Internet Platform 4.6.2, and.NET Standard 2.0 and above.Lessen reliances to prevent version disputes as well as the need for tiing redirects.Transcribing Sound Files.Among the key performances of the SDK is actually audio transcription. Developers may transcribe audio files asynchronously or even in real-time. Below is actually an instance of how to record an audio file:.utilizing AssemblyAI.making use of AssemblyAI.Transcripts.var client = brand new AssemblyAIClient(" YOUR_API_KEY").var records = await client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For local area data, similar code could be made use of to obtain transcription.wait for utilizing var stream = brand new FileStream("./ nbc.mp3", FileMode.Open).var records = await client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK likewise reinforces real-time sound transcription utilizing Streaming Speech-to-Text. This function is especially practical for requests demanding prompt processing of audio information.utilizing AssemblyAI.Realtime.wait for using var transcriber = new RealtimeTranscriber( brand-new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring audio coming from a microphone for example.GetAudio( async (chunk) => wait for transcriber.SendAudioAsync( part)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Apps.The SDK incorporates with LeMUR to enable developers to create sizable language model (LLM) apps on vocal information. Right here is actually an example:.var lemurTaskParams = brand-new LemurTaskParams.Prompt="Offer a brief conclusion of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Cleverness Designs.Additionally, the SDK includes built-in help for audio cleverness designs, allowing conviction evaluation as well as various other sophisticated attributes.var transcript = await client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var cause transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// POSITIVE, NEUTRAL, or even downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To find out more, see the official AssemblyAI blog.Image resource: Shutterstock.