Blockchain

AssemblyAI Introduces C#. INTERNET SDK for Advanced Audio Transcription and also Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI discharges a C#. WEB SDK, allowing programmers to transcribe as well as assess audio, as well as apply LLMs utilizing LeMUR.\n\n\n\n\nAssemblyAI has revealed the launch of its brand-new C#. INTERNET SDK, designed to assist in audio transcription and also analysis for developers utilizing.NET foreign languages such as C#, VB.NET, and F#. The SDK strives to simplify making use of AssemblyAI's sophisticated Speech AI versions, according to AssemblyAI.\nTrick Components and Objectives.\nThe SDK has been actually developed with several vital purposes in mind:.\n\nProvide an user-friendly user interface for all AssemblyAI models and also attributes using idiomatic C

.Guarantee compatibility along with numerous platforms, including.NET 6.0,. Web Framework 4.6.2, and.NET Requirement 2.0 as well as above.Lessen dependences to prevent version disagreements as well as the need for binding redirects.Transcribing Sound Information.Among the major performances of the SDK is audio transcription. Developers can transcribe audio documents asynchronously or in real-time. Below is an instance of how to record an audio file:.making use of AssemblyAI.utilizing AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var records = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For nearby files, identical code could be made use of to obtain transcription.wait for utilizing var stream = new FileStream("./ nbc.mp3", FileMode.Open).var records = wait for client.Transcripts.TranscribeAsync(.stream,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK also supports real-time audio transcription using Streaming Speech-to-Text. This component is actually especially useful for applications calling for urgent handling of audio records.making use of AssemblyAI.Realtime.await 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($" Ultimate: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for getting audio from a mic for example.GetAudio( async (portion) =&gt wait for transcriber.SendAudioAsync( part)).await transcriber.CloseAsync().Making Use Of LeMUR for LLM Functions.The SDK incorporates with LeMUR to enable designers to create sizable foreign language version (LLM) functions on voice information. Here is an example:.var lemurTaskParams = new LemurTaskParams.Trigger="Supply a short review of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intelligence Designs.Furthermore, the SDK features integrated help for audio cleverness versions, permitting view evaluation and other sophisticated attributes.var transcript = wait for client.Transcripts.TranscribeAsync( brand-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)// BENEFICIAL, NEUTRAL, or NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more details, visit the official AssemblyAI blog.Image source: Shutterstock.