Blockchain

AssemblyAI Unveils C#. WEB SDK for Advanced Sound Transcription and also Study #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI launches a C#. WEB SDK, enabling designers to record and study sound, as well as use LLMs using LeMUR.\n\n\n\n\nAssemblyAI has introduced the release of its own new C#. WEB SDK, created to help with audio transcription as well as analysis for programmers utilizing.NET foreign languages like C#, VB.NET, and also F#. The SDK strives to enhance using AssemblyAI's advanced Speech AI designs, according to AssemblyAI.\nTrick Features and Targets.\nThe SDK has actually been built with numerous crucial goals in mind:.\n\nGive an instinctive interface for all AssemblyAI styles and also components making use of idiomatic C

.Ensure compatibility along with a number of structures, including.NET 6.0,. NET Structure 4.6.2, and.NET Criterion 2.0 and above.Minimize dependencies to stop model disputes and the need for tiing redirects.Recording Audio Files.Among the major capabilities of the SDK is audio transcription. Creators can record audio documents asynchronously or in real-time. Below is actually an example of just how to transcribe an audio file:.using AssemblyAI.utilizing AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var transcript = 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 nearby data, similar code can be utilized to obtain transcription.await using var flow = new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for 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 function is especially useful for requests calling for immediate processing of audio information.utilizing AssemblyAI.Realtime.wait for using var transcriber = 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 receiving audio from a mic as an example.GetAudio( async (part) =&gt wait for transcriber.SendAudioAsync( piece)).await transcriber.CloseAsync().Utilizing LeMUR for LLM Applications.The SDK incorporates with LeMUR to permit creators to construct huge foreign language version (LLM) applications on voice records. Here is an instance:.var lemurTaskParams = brand new LemurTaskParams.Cause="Offer a quick summary of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = await client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Knowledge Versions.In addition, the SDK features built-in support for audio intelligence styles, making it possible for feeling review as well as other advanced attributes.var transcript = wait for client.Transcripts.TranscribeAsync( brand-new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3",.SentimentAnalysis = real. ).foreach (var result in 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 ").To find out more, see the main AssemblyAI blog.Image source: Shutterstock.