Blockchain

AssemblyAI Reveals C#. NET SDK for Advanced Sound Transcription as well as Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI releases a C#. INTERNET SDK, permitting creators to translate and also analyze audio, as well as use LLMs utilizing LeMUR.\n\n\n\n\nAssemblyAI has declared the launch of its brand new C#. INTERNET SDK, created to promote audio transcription and analysis for creators utilizing.NET languages such as C#, VB.NET, as well as F#. The SDK strives to enhance the use of AssemblyAI's innovative Pep talk AI models, according to AssemblyAI.\nKey Features and also Targets.\nThe SDK has been actually built along with a number of essential goals in thoughts:.\n\nDeliver an instinctive interface for all AssemblyAI designs as well as functions utilizing idiomatic C

.Guarantee compatibility along with multiple frameworks, including.NET 6.0,. Internet Framework 4.6.2, and.NET Specification 2.0 and also above.Lessen dependences to prevent version problems as well as the requirement for binding redirects.Translating Audio Record.Among the major capabilities of the SDK is actually audio transcription. Developers may translate audio documents asynchronously or in real-time. Below is an example of just how to translate an audio documents:.making use of AssemblyAI.making use of AssemblyAI.Transcripts.var client = brand-new AssemblyAIClient(" YOUR_API_KEY").var transcript = await 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 may be utilized to achieve transcription.await making use of var flow = 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 additionally holds real-time audio transcription using Streaming Speech-to-Text. This function is specifically beneficial for applications requiring quick processing of audio records.making use of AssemblyAI.Realtime.await utilizing var transcriber = brand-new RealtimeTranscriber( brand new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Final: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for receiving sound coming from a microphone for example.GetAudio( async (piece) =&gt wait for transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Functions.The SDK integrates with LeMUR to allow programmers to construct big language version (LLM) apps on voice information. Listed below is an instance:.var lemurTaskParams = new LemurTaskParams.Prompt="Deliver a short rundown of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Cleverness Designs.Also, the SDK features built-in help for audio intellect models, permitting belief analysis and also various other innovative components.var transcript = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = real. ).foreach (var result in 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 additional information, visit the main AssemblyAI blog.Image resource: Shutterstock.