.Make certain compatibility with several platforms, including.NET 6.0,. Internet Structure 4.6.2, and.NET Requirement 2.0 as well as above.Minimize reliances to prevent version conflicts and also the demand for binding redirects.Transcribing Sound Files.Among the main functions of the SDK is audio transcription. Programmers can easily transcribe audio data asynchronously or even in real-time. Below is an instance of just how to record an audio documents:.utilizing 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 neighborhood reports, identical code may be utilized to achieve transcription.await utilizing var stream = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = await client.Transcripts.TranscribeAsync(.flow,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK likewise holds real-time sound transcription making use of Streaming Speech-to-Text. This function is actually specifically helpful for requests needing prompt handling of audio information.making use of AssemblyAI.Realtime.wait for 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($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring audio from a mic as an example.GetAudio( async (piece) => wait for transcriber.SendAudioAsync( piece)).wait for transcriber.CloseAsync().Using LeMUR for LLM Functions.The SDK integrates with LeMUR to permit developers to develop huge language model (LLM) functions on voice data. Listed below is actually an instance:.var lemurTaskParams = new LemurTaskParams.Prompt="Supply a quick rundown of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var reaction = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intelligence Versions.Also, the SDK includes built-in help for audio knowledge models, allowing belief review and also other enhanced attributes.var records = wait for 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)// GOOD, NEUTRAL, or NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To find out more, visit the formal AssemblyAI blog.Image source: Shutterstock.