.Ensure compatibility with numerous frameworks, including.NET 6.0,. Internet Framework 4.6.2, and.NET Requirement 2.0 and above.Decrease dependences to stop variation disagreements and the demand for binding redirects.Transcribing Sound Record.Some of the major capabilities of the SDK is actually audio transcription. Creators may transcribe audio data asynchronously or in real-time. Below is an example of exactly how to transcribe an audio documents:.utilizing AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = 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 documents, comparable code could be made use of to attain transcription.await making use of var stream = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.stream,.brand new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise supports real-time audio transcription utilizing Streaming Speech-to-Text. This component is actually especially practical for requests calling for immediate processing of audio information.making use of AssemblyAI.Realtime.await making use of var scribe = brand-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($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring sound from a microphone for instance.GetAudio( async (chunk) => await transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Functions.The SDK includes along with LeMUR to make it possible for designers to construct huge language version (LLM) applications on voice information. Right here is actually an example:.var lemurTaskParams = brand new LemurTaskParams.Prompt="Give a brief review of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Versions.Also, the SDK includes built-in support for audio intellect models, permitting conviction study and various other state-of-the-art functions.var transcript = wait for client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var lead to transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// POSITIVE, NEUTRAL, or even NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To learn more, see the main AssemblyAI blog.Image source: Shutterstock.