Blockchain

AssemblyAI Introduces C#. NET SDK for Advanced Audio Transcription as well as Study #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI launches a C#. INTERNET SDK, enabling creators to record and assess sound, and apply LLMs using LeMUR.\n\n\n\n\nAssemblyAI has declared the launch of its own brand-new C#. NET SDK, developed to help with audio transcription and also evaluation for designers utilizing.NET languages such as C#, VB.NET, as well as F#. The SDK strives to enhance the use of AssemblyAI's advanced Speech AI versions, according to AssemblyAI.\nKey Attributes and Objectives.\nThe SDK has actually been developed with a number of vital objectives in mind:.\n\nSupply an instinctive interface for all AssemblyAI versions and also components utilizing colloquial C

.Guarantee compatibility along with various platforms, including.NET 6.0,. Internet Framework 4.6.2, and.NET Criterion 2.0 and above.Reduce reliances to stop variation disputes and also the necessity for binding redirects.Recording Sound Record.Some of the key functionalities of the SDK is actually audio transcription. Creators may record audio files asynchronously or even in real-time. Below is actually an instance of just how to transcribe an audio documents:.making use of AssemblyAI.utilizing AssemblyAI.Transcripts.var client = brand new AssemblyAIClient(" YOUR_API_KEY").var transcript = 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 area documents, similar code can be utilized to attain transcription.wait for using var stream = 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 additionally holds real-time sound transcription utilizing Streaming Speech-to-Text. This function is particularly helpful for requests calling for prompt processing of audio data.using AssemblyAI.Realtime.wait for making use of var scribe = 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 "). ).await transcriber.ConnectAsync().// Pseudocode for acquiring sound from a mic as an example.GetAudio( async (chunk) =&gt await transcriber.SendAudioAsync( part)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Functions.The SDK combines with LeMUR to allow programmers to construct huge foreign language version (LLM) functions on vocal records. Listed below is actually an instance:.var lemurTaskParams = brand new LemurTaskParams.Urge="Supply a brief rundown of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Knowledge Models.Also, the SDK includes built-in assistance for audio intellect styles, allowing view review as well as various other enhanced functions.var transcript = await client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = real. ).foreach (var result in transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// GOOD, NEUTRAL, or even downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To read more, go to the official AssemblyAI blog.Image resource: Shutterstock.