Blockchain

AssemblyAI Unveils C#. NET SDK for Advanced Sound Transcription and also Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI discharges a C#. INTERNET SDK, allowing creators to translate and study audio, and use LLMs utilizing LeMUR.\n\n\n\n\nAssemblyAI has actually announced the release of its own brand-new C#. INTERNET SDK, created to promote audio transcription and evaluation for developers utilizing.NET foreign languages like C#, VB.NET, as well as F#. The SDK intends to simplify making use of AssemblyAI's innovative Speech AI versions, depending on to AssemblyAI.\nSecret Attributes as well as Goals.\nThe SDK has actually been developed along with many vital objectives in mind:.\n\nGive an intuitive interface for all AssemblyAI versions and also functions using idiomatic C

.Make sure compatibility with numerous platforms, including.NET 6.0,. Web Framework 4.6.2, and.NET Standard 2.0 and above.Decrease reliances to stop variation disputes and also the requirement for binding redirects.Transcribing Sound Information.One of the major functions 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 record an audio report:.using AssemblyAI.making use of AssemblyAI.Transcripts.var client = brand 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 regional reports, similar code can be made use of to achieve transcription.wait for making use of var flow = brand new FileStream("./ nbc.mp3", FileMode.Open).var records = await client.Transcripts.TranscribeAsync(.stream,.new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise holds real-time audio transcription utilizing Streaming Speech-to-Text. This feature is actually particularly helpful for treatments requiring urgent handling of audio records.utilizing AssemblyAI.Realtime.wait for utilizing 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($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring audio from a mic for instance.GetAudio( async (portion) =&gt wait for transcriber.SendAudioAsync( part)).await transcriber.CloseAsync().Using LeMUR for LLM Apps.The SDK combines with LeMUR to enable designers to create big foreign language style (LLM) apps on voice records. Listed here is an instance:.var lemurTaskParams = brand-new LemurTaskParams.Cue="Give a quick rundown of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Knowledge Styles.Furthermore, the SDK comes with built-in help for audio intelligence models, allowing conviction review and other sophisticated attributes.var transcript = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = accurate. ).foreach (var cause 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, see the main AssemblyAI blog.Image resource: Shutterstock.

Articles You Can Be Interested In