Blockchain

AssemblyAI Unveils C#. INTERNET SDK for Advanced Sound Transcription and also Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI releases a C#. NET SDK, permitting designers to record as well as assess sound, and administer LLMs using LeMUR.\n\n\n\n\nAssemblyAI has actually announced the launch of its own new C#. WEB SDK, made to help with audio transcription and also evaluation for creators utilizing.NET languages like C#, VB.NET, and also F#. The SDK strives to improve the use of AssemblyAI's enhanced Speech AI designs, according to AssemblyAI.\nTrick Attributes and Goals.\nThe SDK has been created with several vital purposes in thoughts:.\n\nGive an user-friendly interface for all AssemblyAI models and also components making use of idiomatic C

.Ensure being compatible with multiple platforms, including.NET 6.0,. Web Structure 4.6.2, and.NET Requirement 2.0 and above.Reduce dependences to avoid variation problems as well as the requirement for binding redirects.Recording Sound Info.One of the major performances of the SDK is actually audio transcription. Creators may record audio files asynchronously or in real-time. Below is actually an example of just how to transcribe an audio documents:.utilizing AssemblyAI.making use of AssemblyAI.Transcripts.var client = brand new AssemblyAIClient(" YOUR_API_KEY").var records = 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 nearby documents, similar code may be utilized to attain transcription.wait for utilizing var flow = brand new FileStream("./ nbc.mp3", FileMode.Open).var records = await client.Transcripts.TranscribeAsync(.stream,.brand new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK also sustains real-time audio transcription using Streaming Speech-to-Text. This component is actually specifically beneficial for treatments needing urgent handling 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( transcript =&gtConsole.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for getting sound coming from a microphone for instance.GetAudio( async (piece) =&gt wait for transcriber.SendAudioAsync( piece)).wait for transcriber.CloseAsync().Using LeMUR for LLM Apps.The SDK incorporates with LeMUR to permit developers to create huge foreign language version (LLM) apps on voice information. Listed below is actually an instance:.var lemurTaskParams = brand new LemurTaskParams.Motivate="Supply a brief summary of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var reaction = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Versions.Also, the SDK possesses built-in help for audio intellect designs, enabling sentiment review as well as other innovative components.var records = await client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = real. ).foreach (var cause transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// POSITIVE, NEUTRAL, or downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To find out more, see the official AssemblyAI blog.Image resource: Shutterstock.