Blockchain

AssemblyAI Unveils C#. INTERNET SDK for Advanced Audio Transcription and Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI launches a C#. WEB SDK, enabling programmers to translate and also evaluate sound, and use LLMs utilizing LeMUR.\n\n\n\n\nAssemblyAI has introduced the release of its own brand new C#. WEB SDK, designed to facilitate audio transcription as well as evaluation for designers utilizing.NET languages such as C#, VB.NET, and also F#. The SDK strives to streamline making use of AssemblyAI's advanced Speech AI versions, depending on to AssemblyAI.\nKey Attributes and also Goals.\nThe SDK has been actually created with many vital goals in mind:.\n\nGive an intuitive user interface for all AssemblyAI versions and features using idiomatic C

.Ensure being compatible with a number of frameworks, including.NET 6.0,. Internet Framework 4.6.2, and.NET Specification 2.0 as well as above.Reduce dependencies to avoid variation problems and also the necessity for tiing redirects.Recording Audio Information.One of the main functionalities of the SDK is actually audio transcription. Programmers can easily transcribe audio data asynchronously or even in real-time. Below is an example of just how to translate an audio file:.using AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = brand new AssemblyAIClient(" YOUR_API_KEY").var transcript = await client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For nearby data, comparable code may be utilized to obtain transcription.await utilizing var stream = brand-new FileStream("./ nbc.mp3", FileMode.Open).var transcript = await client.Transcripts.TranscribeAsync(.flow,.brand-new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK additionally reinforces real-time sound transcription utilizing Streaming Speech-to-Text. This component is actually specifically useful for requests demanding immediate processing of audio information.making use of 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( records =&gtConsole.WriteLine($" Partial: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =&gtConsole.WriteLine($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for obtaining audio coming from a microphone for instance.GetAudio( async (part) =&gt await transcriber.SendAudioAsync( part)).wait for transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Apps.The SDK integrates along with LeMUR to enable designers to develop big language version (LLM) functions on voice records. Here is an instance:.var lemurTaskParams = brand new LemurTaskParams.Motivate="Supply a brief conclusion 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 Versions.Furthermore, the SDK includes built-in support for audio intelligence versions, making it possible for feeling review and other enhanced functions.var records = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = true. ).foreach (var cause transcript.SentimentAnalysisResults!).Console.WriteLine( result.Text).Console.WriteLine( result.Sentiment)// POSITIVE, NEUTRAL, or downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").To find out more, visit the main AssemblyAI blog.Image source: Shutterstock.