Blockchain

AssemblyAI Unveils C#. WEB SDK for Advanced Audio Transcription and Analysis #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI launches a C#. NET SDK, enabling programmers to record as well as examine audio, as well as administer LLMs using LeMUR.\n\n\n\n\nAssemblyAI has actually revealed the release of its own brand new C#. NET SDK, made to promote audio transcription as well as evaluation for developers utilizing.NET languages like C#, VB.NET, and F#. The SDK intends to streamline using AssemblyAI's innovative Speech AI styles, depending on to AssemblyAI.\nKey Features as well as Goals.\nThe SDK has been cultivated along with numerous essential goals in thoughts:.\n\nGive an instinctive user interface for all AssemblyAI designs and also features utilizing colloquial C

.Guarantee compatibility with multiple structures, including.NET 6.0,. NET Framework 4.6.2, and.NET Specification 2.0 and above.Decrease dependences to prevent variation conflicts as well as the necessity for tiing redirects.Transcribing Sound Data.Some of the key capabilities of the SDK is actually audio transcription. Designers can record audio reports asynchronously or in real-time. Below is actually an example of how to transcribe an audio report:.using AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = 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 neighborhood documents, comparable code may be made use of to achieve transcription.await making use of var stream = brand-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 Audio Transcription.The SDK likewise supports real-time sound transcription making use of Streaming Speech-to-Text. This attribute is particularly helpful for uses calling for urgent handling of audio records.using AssemblyAI.Realtime.wait for making use of 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( transcript =&gtConsole.WriteLine($" Ultimate: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring audio from a microphone for example.GetAudio( async (chunk) =&gt await transcriber.SendAudioAsync( piece)).wait for transcriber.CloseAsync().Making Use Of LeMUR for LLM Functions.The SDK combines with LeMUR to allow creators to create sizable language style (LLM) functions on voice information. Here is an instance:.var lemurTaskParams = brand-new LemurTaskParams.Motivate="Give a brief conclusion of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Knowledge Versions.Additionally, the SDK includes built-in assistance for audio knowledge versions, making it possible for conviction evaluation as well as various other sophisticated features.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)// GOOD, NEUTRAL, or even NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For additional information, check out the main AssemblyAI blog.Image resource: Shutterstock.