Blockchain

AssemblyAI Unveils C#. INTERNET SDK for Advanced Sound Transcription as well as Analysis #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI discharges a C#. NET SDK, allowing designers to translate and examine sound, and also apply LLMs making use of LeMUR.\n\n\n\n\nAssemblyAI has declared the launch of its new C#. INTERNET SDK, developed to help with audio transcription and analysis for creators utilizing.NET languages such as C#, VB.NET, and F#. The SDK targets to streamline the use of AssemblyAI's state-of-the-art Speech AI versions, depending on to AssemblyAI.\nTrick Functions as well as Targets.\nThe SDK has been created along with numerous vital objectives in mind:.\n\nOffer an user-friendly user interface for all AssemblyAI designs and also functions utilizing idiomatic C

.Ensure being compatible along with various platforms, including.NET 6.0,. Web Platform 4.6.2, and.NET Criterion 2.0 and also above.Minimize dependences to prevent version disagreements as well as the requirement for tiing redirects.Transcribing Sound Information.Among the key performances of the SDK is actually audio transcription. Designers can translate audio data asynchronously or even in real-time. Below is actually an example of just how to record an audio data:.utilizing AssemblyAI.utilizing AssemblyAI.Transcripts.var client = 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 regional files, similar code could be utilized to achieve transcription.wait for using var stream = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = await client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK also reinforces real-time sound transcription using Streaming Speech-to-Text. This attribute is especially beneficial for uses needing instant processing of audio information.utilizing AssemblyAI.Realtime.wait for using var scribe = 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( transcript =&gtConsole.WriteLine($" Final: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for receiving audio coming from a microphone as an example.GetAudio( async (chunk) =&gt wait for transcriber.SendAudioAsync( part)).await transcriber.CloseAsync().Utilizing LeMUR for LLM Apps.The SDK combines along with LeMUR to permit developers to construct sizable language model (LLM) applications on voice data. Here is an instance:.var lemurTaskParams = new LemurTaskParams.Prompt="Offer a short review of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var action = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Knowledge Models.In addition, the SDK comes with built-in support for audio cleverness designs, enabling view review and various other advanced features.var records = wait for client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var cause transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// FAVORABLE, NEUTRAL, or downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more details, see the official AssemblyAI blog.Image source: Shutterstock.