Blockchain

AssemblyAI Unveils C#. NET SDK for Advanced Audio Transcription and also Analysis #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI launches a C#. WEB SDK, enabling creators to transcribe and also analyze audio, and also apply LLMs using LeMUR.\n\n\n\n\nAssemblyAI has declared the launch of its brand new C#. WEB SDK, made to promote audio transcription and evaluation for designers utilizing.NET foreign languages like C#, VB.NET, and also F#. The SDK targets to simplify using AssemblyAI's advanced Speech AI styles, depending on to AssemblyAI.\nKey Features and Objectives.\nThe SDK has actually been established along with many key goals in thoughts:.\n\nProvide an user-friendly interface for all AssemblyAI designs and also attributes using colloquial C

.Make certain compatibility with multiple platforms, including.NET 6.0,. Internet Platform 4.6.2, and.NET Specification 2.0 as well as above.Reduce dependencies to prevent model disagreements and also the demand for tiing redirects.Transcribing Audio Data.One of the major functionalities of the SDK is audio transcription. Programmers may translate audio files asynchronously or in real-time. Below is an instance of how to transcribe an audio report:.making use of AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = brand new AssemblyAIClient(" YOUR_API_KEY").var transcript = 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 local area files, identical code may be utilized to obtain transcription.await utilizing var stream = 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 Audio Transcription.The SDK also holds real-time audio transcription utilizing Streaming Speech-to-Text. This attribute is actually especially beneficial for treatments demanding urgent processing of audio information.utilizing AssemblyAI.Realtime.wait for using var transcriber = brand new RealtimeTranscriber( brand new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( transcript =&gtConsole.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for receiving sound from a microphone as an example.GetAudio( async (chunk) =&gt await transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Utilizing LeMUR for LLM Applications.The SDK incorporates along with LeMUR to enable developers to construct huge foreign language style (LLM) apps on vocal information. Listed below is actually an example:.var lemurTaskParams = brand-new LemurTaskParams.Trigger="Give a short review of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var action = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Knowledge Designs.Furthermore, the SDK includes integrated help for audio knowledge models, enabling view review and various other advanced features.var transcript = wait for 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)// BENEFICIAL, NEUTRAL, or downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more information, check out the official AssemblyAI blog.Image source: Shutterstock.