.Make sure compatibility with multiple frameworks, including.NET 6.0,. Internet Framework 4.6.2, and.NET Standard 2.0 as well as above.Lessen dependencies to prevent variation disagreements and also the need for tiing redirects.Recording Sound Record.Among the primary functions of the SDK is actually audio transcription. Designers may translate audio data asynchronously or even in real-time. Below is actually an instance of just how to record an audio file:.utilizing AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = new AssemblyAIClient(" YOUR_API_KEY").var records = wait for client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For regional data, similar code could be used to obtain transcription.await utilizing var stream = brand-new FileStream("./ nbc.mp3", FileMode.Open).var records = wait for client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise holds real-time audio transcription utilizing Streaming Speech-to-Text. This feature is actually especially practical for requests requiring urgent processing of audio data.using 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($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =>Console.WriteLine($" Ultimate: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for receiving sound coming from a microphone for example.GetAudio( async (part) => await transcriber.SendAudioAsync( piece)).wait for transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Functions.The SDK includes with LeMUR to enable developers to create sizable foreign language style (LLM) applications on vocal records. Below is actually an example:.var lemurTaskParams = brand-new LemurTaskParams.Cause="Supply a short recap of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var reaction = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Versions.Furthermore, the SDK includes integrated help for audio knowledge designs, allowing feeling evaluation and also other innovative components.var records = await 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 formal AssemblyAI blog.Image source: Shutterstock.