.Make certain compatibility along with numerous platforms, including.NET 6.0,. NET Framework 4.6.2, and.NET Specification 2.0 as well as above.Minimize addictions to stop model disagreements as well as the necessity for tiing redirects.Transcribing Audio Data.Some of the primary capabilities of the SDK is audio transcription. Developers can record audio files asynchronously or in real-time. Below is actually an instance of how to translate an audio report:.making use of AssemblyAI.making use of AssemblyAI.Transcripts.var customer = new AssemblyAIClient(" YOUR_API_KEY").var transcript = wait for client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For nearby documents, similar code may be made use of to attain transcription.wait for utilizing var flow = 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 Sound Transcription.The SDK additionally reinforces real-time audio transcription utilizing Streaming Speech-to-Text. This function is actually particularly helpful for treatments calling for quick processing of audio records.making use of AssemblyAI.Realtime.wait for utilizing var scribe = brand-new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Final: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for obtaining audio coming from a mic for example.GetAudio( async (portion) => wait for transcriber.SendAudioAsync( chunk)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Apps.The SDK integrates along with LeMUR to make it possible for programmers to create sizable foreign language style (LLM) apps on vocal data. Listed below is an example:.var lemurTaskParams = brand new LemurTaskParams.Cue="Supply a short recap of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Versions.In addition, the SDK possesses built-in assistance for audio cleverness versions, permitting view analysis and other state-of-the-art features.var records = wait for client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = true. ).foreach (var lead to transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// GOOD, NEUTRAL, or NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To read more, check out the formal AssemblyAI blog.Image source: Shutterstock.