Blockchain

AssemblyAI Introduces C#. WEB SDK for Advanced Audio Transcription as well as Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI launches a C#. NET SDK, permitting developers to transcribe and also examine audio, as well as use LLMs making use of LeMUR.\n\n\n\n\nAssemblyAI has actually revealed the release of its own new C#. NET SDK, made to assist in audio transcription and also analysis for creators utilizing.NET foreign languages like C#, VB.NET, as well as F#. The SDK intends to improve making use of AssemblyAI's innovative Pep talk AI designs, according to AssemblyAI.\nTrick Functions and also Goals.\nThe SDK has actually been actually cultivated with numerous crucial purposes in mind:.\n\nOffer an instinctive user interface for all AssemblyAI models and features using colloquial C

.Ensure compatibility along with numerous platforms, including.NET 6.0,. NET Structure 4.6.2, and.NET Criterion 2.0 and above.Reduce reliances to avoid model disputes and also the demand for tiing redirects.Transcribing Audio Files.Some of the primary functions of the SDK is audio transcription. Programmers can translate audio data asynchronously or in real-time. Below is actually an example of how to record an audio data:.making use of AssemblyAI.using AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var records = wait for client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For local reports, identical code can be used to obtain transcription.wait for making use of var flow = brand 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 Audio Transcription.The SDK likewise reinforces real-time audio transcription making use of Streaming Speech-to-Text. This component is actually specifically useful for uses requiring instant processing of audio data.utilizing AssemblyAI.Realtime.await using var scribe = 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($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for obtaining sound from a mic for instance.GetAudio( async (part) =&gt wait for transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Utilizing LeMUR for LLM Applications.The SDK combines along with LeMUR to make it possible for programmers to build huge language design (LLM) apps on voice data. Right here is an example:.var lemurTaskParams = brand new LemurTaskParams.Prompt="Supply a quick recap of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Knowledge Styles.Additionally, the SDK comes with built-in support for audio intelligence styles, making it possible for conviction analysis and also various other state-of-the-art functions.var records = wait for client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var lead to transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// POSITIVE, NEUTRAL, or even NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more details, check out the official AssemblyAI blog.Image source: Shutterstock.