Blockchain

AssemblyAI Introduces C#. WEB SDK for Advanced Sound Transcription and Review #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI launches a C#. NET SDK, making it possible for developers to translate as well as examine audio, and use LLMs using LeMUR.\n\n\n\n\nAssemblyAI has actually declared the launch of its brand new C#. NET SDK, created to assist in audio transcription and also analysis for programmers utilizing.NET foreign languages such as C#, VB.NET, as well as F#. The SDK intends to streamline the use of AssemblyAI's advanced Speech AI styles, depending on to AssemblyAI.\nTrick Features and also Targets.\nThe SDK has actually been cultivated with many essential goals in thoughts:.\n\nGive an intuitive user interface for all AssemblyAI styles and also functions making use of idiomatic C

.Ensure compatibility with numerous frameworks, including.NET 6.0,. Internet Framework 4.6.2, and.NET Requirement 2.0 and above.Decrease dependences to stop variation disagreements and the demand for binding redirects.Transcribing Sound Record.Some of the major capabilities of the SDK is actually audio transcription. Creators may transcribe audio data asynchronously or in real-time. Below is an example of exactly how to transcribe an audio documents:.utilizing AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = new AssemblyAIClient(" YOUR_API_KEY").var records = await 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, comparable code could be made use of to attain transcription.await making use of var stream = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.stream,.brand new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Audio Transcription.The SDK likewise supports real-time audio transcription utilizing Streaming Speech-to-Text. This component is actually especially practical for requests calling for immediate processing of audio information.making use of AssemblyAI.Realtime.await making use of var scribe = 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($" Last: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring sound from a microphone for instance.GetAudio( async (chunk) =&gt await transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Functions.The SDK includes along with LeMUR to make it possible for designers to construct huge language version (LLM) applications on voice information. Right here is actually an example:.var lemurTaskParams = brand new LemurTaskParams.Prompt="Give a brief review of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var feedback = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Versions.Also, the SDK includes built-in support for audio intellect models, permitting conviction study and various other state-of-the-art functions.var transcript = wait for client.Transcripts.TranscribeAsync( brand new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = correct. ).foreach (var lead to 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 ").To learn more, see the main AssemblyAI blog.Image source: Shutterstock.