.Guarantee compatibility with numerous structures, including.NET 6.0,. NET Structure 4.6.2, and.NET Requirement 2.0 and also above.Lessen dependencies to avoid variation problems and also the need for binding redirects.Transcribing Audio Info.Among the main capabilities of the SDK is actually audio transcription. Programmers may record audio data asynchronously or even in real-time. Below is an example of just how to translate an audio documents:.using AssemblyAI.utilizing AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var transcript = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For local files, identical code could be used to achieve transcription.await making use of var flow = new FileStream("./ nbc.mp3", FileMode.Open).var records = await client.Transcripts.TranscribeAsync(.flow,.brand new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK additionally supports real-time audio transcription making use of Streaming Speech-to-Text. This function is particularly practical for requests demanding instant handling of audio records.making use of AssemblyAI.Realtime.wait for utilizing var scribe = brand-new RealtimeTranscriber( brand new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Ultimate: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for receiving sound from a mic for example.GetAudio( async (chunk) => wait for transcriber.SendAudioAsync( chunk)).wait for transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Apps.The SDK incorporates with LeMUR to make it possible for creators to create sizable foreign language model (LLM) functions on voice records. Here is an instance:.var lemurTaskParams = brand-new LemurTaskParams.Cue="Give a quick recap of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var action = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intellect Versions.Also, the SDK possesses integrated assistance for audio intellect versions, enabling belief analysis and also other advanced functions.var transcript = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = real. ).foreach (var result in transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// BENEFICIAL, NEUTRAL, or even downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To find out more, visit the main AssemblyAI blog.Image resource: Shutterstock.