Blockchain

AssemblyAI Introduces C#. NET SDK for Advanced Sound Transcription as well as Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI releases a C#. NET SDK, enabling developers to record as well as evaluate audio, and also administer LLMs utilizing LeMUR.\n\n\n\n\nAssemblyAI has actually introduced the release of its new C#. NET SDK, developed to help with audio transcription and also evaluation for designers utilizing.NET languages like C#, VB.NET, as well as F#. The SDK intends to streamline the use of AssemblyAI's advanced Speech AI designs, according to AssemblyAI.\nTrick Attributes as well as Goals.\nThe SDK has actually been actually established with several vital purposes in mind:.\n\nGive an user-friendly user interface for all AssemblyAI designs and components using idiomatic C

.Make certain compatibility with numerous platforms, including.NET 6.0,. NET Structure 4.6.2, and.NET Specification 2.0 and above.Decrease dependences to avoid version disagreements as well as the necessity for binding redirects.Translating Audio Info.Some of the major performances of the SDK is actually audio transcription. Developers can easily record audio documents asynchronously or in real-time. Below is an instance of just how to record an audio documents:.using AssemblyAI.using AssemblyAI.Transcripts.var customer = brand new AssemblyAIClient(" YOUR_API_KEY").var transcript = await 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 reports, identical code can be made use of to attain transcription.wait for utilizing var flow = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.stream,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK additionally supports real-time audio transcription utilizing Streaming Speech-to-Text. This function is particularly beneficial for uses requiring instant processing of audio records.using AssemblyAI.Realtime.await making use of var transcriber = 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($" Last: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for getting audio coming from a microphone for instance.GetAudio( async (chunk) =&gt await transcriber.SendAudioAsync( portion)).wait for transcriber.CloseAsync().Making Use Of LeMUR for LLM Applications.The SDK combines with LeMUR to enable creators to build huge language design (LLM) apps on voice information. Below is an instance:.var lemurTaskParams = brand-new LemurTaskParams.Trigger="Give a quick conclusion of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Cleverness Models.Also, the SDK features integrated help for audio cleverness designs, enabling conviction study as well as other innovative features.var transcript = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = accurate. ).foreach (var lead to 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 details, check out the formal AssemblyAI blog.Image source: Shutterstock.