.Make certain being compatible with several structures, including.NET 6.0,. NET Structure 4.6.2, and.NET Specification 2.0 and above.Minimize dependences to stop model disagreements and also the demand for tiing redirects.Translating Audio Record.Among the primary performances of the SDK is actually audio transcription. Programmers can easily translate audio files asynchronously or in real-time. Below is an instance of just how to record an audio documents:.utilizing AssemblyAI.making use of AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var transcript = await client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For nearby files, identical code may be made use of to achieve transcription.await using var stream = brand-new FileStream("./ nbc.mp3", FileMode.Open).var records = wait for client.Transcripts.TranscribeAsync(.flow,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise holds real-time audio transcription making use of Streaming Speech-to-Text. This attribute is particularly helpful for applications requiring immediate handling of audio records.using AssemblyAI.Realtime.await utilizing var scribe = new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Last: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for acquiring sound from a mic as an example.GetAudio( async (piece) => wait for transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Utilizing LeMUR for LLM Apps.The SDK integrates with LeMUR to permit designers to develop huge foreign language design (LLM) applications on vocal data. Here is actually an example:.var lemurTaskParams = new LemurTaskParams.Trigger="Offer a quick conclusion of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Models.Furthermore, the SDK comes with integrated support for audio intellect designs, making it possible for sentiment analysis and also other enhanced features.var records = await client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var result in transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// FAVORABLE, NEUTRAL, or downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more details, explore the official AssemblyAI blog.Image source: Shutterstock.