Blockchain

AssemblyAI Unveils C#. WEB SDK for Advanced Audio Transcription and Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI releases a C#. NET SDK, permitting developers to transcribe as well as analyze sound, and also administer LLMs utilizing LeMUR.\n\n\n\n\nAssemblyAI has introduced the release of its brand-new C#. NET SDK, made to facilitate audio transcription as well as analysis for developers utilizing.NET languages such as C#, VB.NET, as well as F#. The SDK aims to streamline making use of AssemblyAI's advanced Pep talk AI versions, depending on to AssemblyAI.\nKey Features as well as Targets.\nThe SDK has actually been actually developed with a number of essential purposes in mind:.\n\nSupply an user-friendly interface for all AssemblyAI models as well as components making use of colloquial C

.Ensure being compatible with various structures, including.NET 6.0,. Internet Structure 4.6.2, and.NET Criterion 2.0 and also above.Decrease reliances to stop model problems as well as the requirement for binding redirects.Transcribing Sound Information.Among the key capabilities of the SDK is actually audio transcription. Creators may record audio reports asynchronously or in real-time. Below is actually an example of just how to record an audio documents:.using AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = new AssemblyAIClient(" YOUR_API_KEY").var transcript = 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 area files, comparable code may be used to attain transcription.await making use of var flow = new FileStream("./ nbc.mp3", FileMode.Open).var records = wait for client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK additionally sustains real-time sound transcription utilizing Streaming Speech-to-Text. This component is actually especially helpful for applications requiring immediate processing of audio information.making use of AssemblyAI.Realtime.wait for making use of var transcriber = new RealtimeTranscriber( brand-new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Final: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for acquiring sound coming from a microphone as an example.GetAudio( async (portion) =&gt await transcriber.SendAudioAsync( chunk)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Apps.The SDK includes along with LeMUR to enable creators to build sizable language model (LLM) applications on vocal records. Listed below is an instance:.var lemurTaskParams = new LemurTaskParams.Prompt="Offer a short review of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Cleverness Designs.Furthermore, the SDK features built-in support for audio intelligence designs, allowing view evaluation and also other state-of-the-art functions.var transcript = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var result in transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// FAVORABLE, NEUTRAL, or NEGATIVE.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To find out more, go to the main AssemblyAI blog.Image source: Shutterstock.