.Ensure compatibility along with a number of structures, including.NET 6.0,. Internet Framework 4.6.2, and.NET Specification 2.0 and also above.Minimize dependencies to avoid version conflicts as well as the need for tiing redirects.Transcribing Sound Files.Among the main functionalities of the SDK is audio transcription. Developers can easily record audio reports asynchronously or in real-time. Below is an instance of how to translate an audio data:.utilizing AssemblyAI.using AssemblyAI.Transcripts.var client = brand-new AssemblyAIClient(" YOUR_API_KEY").var records = 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 data, comparable code can be used to accomplish transcription.await using var flow = brand new FileStream("./ nbc.mp3", FileMode.Open).var transcript = await client.Transcripts.TranscribeAsync(.stream,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK also sustains real-time sound transcription using Streaming Speech-to-Text. This feature is particularly valuable for requests calling for instant handling of audio information.using AssemblyAI.Realtime.wait for utilizing var scribe = new RealtimeTranscriber( brand-new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for obtaining sound from a mic as an example.GetAudio( async (chunk) => wait for transcriber.SendAudioAsync( part)).wait for transcriber.CloseAsync().Making Use Of LeMUR for LLM Functions.The SDK includes along with LeMUR to permit programmers to construct large foreign language model (LLM) apps on voice information. Below is an instance:.var lemurTaskParams = brand new LemurTaskParams.Prompt="Provide a short summary of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var action = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Cleverness Styles.Additionally, the SDK features built-in assistance for audio knowledge models, making it possible for feeling review and also other state-of-the-art attributes.var records = wait for client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = accurate. ).foreach (var result in transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// POSITIVE, NEUTRAL, or even downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For additional information, see the main AssemblyAI blog.Image source: Shutterstock.