Blockchain

AssemblyAI Reveals C#. WEB SDK for Advanced Audio Transcription and also Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI releases a C#. INTERNET SDK, enabling creators to translate and also analyze sound, and use LLMs using LeMUR.\n\n\n\n\nAssemblyAI has actually introduced the launch of its own brand new C#. NET SDK, designed to assist in audio transcription and also analysis for designers utilizing.NET foreign languages including C#, VB.NET, and F#. The SDK strives to enhance making use of AssemblyAI's advanced Pep talk AI styles, depending on to AssemblyAI.\nSecret Attributes and Goals.\nThe SDK has been cultivated along with several crucial objectives in mind:.\n\nGive an intuitive interface for all AssemblyAI versions and functions using colloquial C

.Ensure being compatible with numerous frameworks, including.NET 6.0,. NET Structure 4.6.2, and.NET Specification 2.0 and also above.Minimize dependencies to prevent variation conflicts and also the demand for binding redirects.Recording Audio Record.One of the key performances of the SDK is audio transcription. Creators can translate audio documents asynchronously or in real-time. Below is actually an example of exactly how to transcribe an audio report:.using AssemblyAI.making use of AssemblyAI.Transcripts.var client = brand-new AssemblyAIClient(" YOUR_API_KEY").var records = 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 regional reports, comparable code may be utilized to achieve transcription.await using var stream = 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 Sound Transcription.The SDK also holds real-time sound transcription utilizing Streaming Speech-to-Text. This feature is actually specifically helpful for uses needing quick handling of audio data.using AssemblyAI.Realtime.await utilizing var transcriber = brand-new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( transcript =&gtConsole.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =&gtConsole.WriteLine($" Final: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for getting sound coming from a mic as an example.GetAudio( async (piece) =&gt await transcriber.SendAudioAsync( part)).wait for transcriber.CloseAsync().Making Use Of LeMUR for LLM Apps.The SDK integrates with LeMUR to make it possible for creators to create sizable language model (LLM) functions on vocal records. Listed below is actually an example:.var lemurTaskParams = brand new LemurTaskParams.Motivate="Provide a brief summary of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Designs.In addition, the SDK features integrated support for audio cleverness styles, making it possible for feeling evaluation and various other sophisticated functions.var records = 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 downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For additional information, see the formal AssemblyAI blog.Image source: Shutterstock.