Blockchain

AssemblyAI Introduces C#. NET SDK for Advanced Sound Transcription and Analysis #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI releases a C#. INTERNET SDK, permitting designers to transcribe and analyze sound, as well as use LLMs utilizing LeMUR.\n\n\n\n\nAssemblyAI has actually declared the release of its own brand new C#. INTERNET SDK, created to assist in audio transcription and analysis for programmers utilizing.NET languages like C#, VB.NET, as well as F#. The SDK intends to improve using AssemblyAI's innovative Speech AI versions, depending on to AssemblyAI.\nSecret Features and Objectives.\nThe SDK has been actually developed along with numerous key objectives in mind:.\n\nSupply an intuitive user interface for all AssemblyAI designs as well as components making use of idiomatic C

.Make certain being compatible with multiple platforms, including.NET 6.0,. NET Structure 4.6.2, and.NET Requirement 2.0 as well as above.Reduce addictions to prevent variation problems and the demand for tiing redirects.Translating Audio Record.One of the main functionalities of the SDK is actually audio transcription. Designers may translate audio data asynchronously or in real-time. Below is actually an instance of how to transcribe an audio data:.utilizing AssemblyAI.using 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 local files, similar code may be utilized to attain transcription.await using var flow = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = await client.Transcripts.TranscribeAsync(.flow,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise sustains real-time audio transcription making use of Streaming Speech-to-Text. This component is actually especially helpful for treatments demanding urgent handling of audio records.utilizing AssemblyAI.Realtime.await using var transcriber = brand-new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for getting sound coming from a microphone for example.GetAudio( async (portion) =&gt wait for transcriber.SendAudioAsync( chunk)).wait for transcriber.CloseAsync().Making Use Of LeMUR for LLM Apps.The SDK incorporates with LeMUR to enable designers to construct large foreign language design (LLM) functions on vocal records. Here is an instance:.var lemurTaskParams = brand new LemurTaskParams.Trigger="Offer a quick summary of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intelligence Designs.Also, the SDK includes built-in help for audio cleverness styles, enabling sentiment evaluation as well as various other sophisticated components.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)// GOOD, NEUTRAL, or even NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more information, visit the main AssemblyAI blog.Image source: Shutterstock.