.Make sure being compatible with a number of platforms, including.NET 6.0,. Web Platform 4.6.2, and.NET Requirement 2.0 as well as above.Lessen reliances to prevent version disputes as well as the need for binding redirects.Translating Audio Info.Among the key functions of the SDK is actually audio transcription. Developers can easily transcribe audio files asynchronously or in real-time. Below is actually an instance of exactly how to record an audio file:.using AssemblyAI.using AssemblyAI.Transcripts.var client = 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 local data, identical code can be made use of to obtain transcription.wait for making use of var stream = brand new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.flow,.brand new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK also holds real-time audio transcription utilizing Streaming Speech-to-Text. This feature is actually specifically beneficial for requests calling for urgent handling of audio records.using AssemblyAI.Realtime.wait for utilizing var scribe = brand new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =>Console.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =>Console.WriteLine($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring audio coming from a microphone as an example.GetAudio( async (piece) => wait for transcriber.SendAudioAsync( portion)).wait for transcriber.CloseAsync().Utilizing LeMUR for LLM Apps.The SDK integrates with LeMUR to enable developers to construct sizable foreign language style (LLM) functions on vocal records. Below is actually an instance:.var lemurTaskParams = brand-new LemurTaskParams.Prompt="Give a brief recap of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intellect Styles.Furthermore, the SDK includes integrated support for audio cleverness models, making it possible for conviction study and various other innovative attributes.var records = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = accurate. ).foreach (var cause transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// GOOD, NEUTRAL, or downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more information, visit the formal AssemblyAI blog.Image source: Shutterstock.