Blockchain

AssemblyAI Introduces C#. WEB SDK for Advanced Audio Transcription and also Evaluation #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI discharges a C#. NET SDK, permitting developers to translate as well as assess audio, and also apply LLMs making use of LeMUR.\n\n\n\n\nAssemblyAI has declared the launch of its own new C#. NET SDK, developed to help with audio transcription and evaluation for designers utilizing.NET foreign languages such as C#, VB.NET, and also F#. The SDK intends to simplify making use of AssemblyAI's enhanced Speech AI versions, depending on to AssemblyAI.\nKey Functions and also Goals.\nThe SDK has been cultivated along with several crucial purposes in thoughts:.\n\nProvide an intuitive interface for all AssemblyAI models and components utilizing idiomatic C

.Make sure compatibility with multiple frameworks, including.NET 6.0,. Internet Framework 4.6.2, and.NET Standard 2.0 as well as above.Lessen dependencies to prevent variation disagreements and also the need for tiing redirects.Recording Sound Record.Among the primary functions of the SDK is actually audio transcription. Designers may translate audio data asynchronously or even in real-time. Below is actually an instance of just how to record an audio file:.utilizing AssemblyAI.utilizing AssemblyAI.Transcripts.var customer = 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 data, similar code could be used to obtain transcription.await utilizing var stream = brand-new FileStream("./ nbc.mp3", FileMode.Open).var records = 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 feature is actually especially practical for requests requiring urgent processing of audio data.using 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($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Ultimate: transcript.Text "). ).await transcriber.ConnectAsync().// Pseudocode for receiving sound coming from a microphone for example.GetAudio( async (part) =&gt await transcriber.SendAudioAsync( piece)).wait for transcriber.CloseAsync().Taking Advantage Of LeMUR for LLM Functions.The SDK includes with LeMUR to enable developers to create sizable foreign language style (LLM) applications on vocal records. Below is actually an example:.var lemurTaskParams = brand-new LemurTaskParams.Cause="Supply a short recap of the transcript.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var reaction = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Audio Knowledge Versions.Furthermore, the SDK includes integrated help for audio knowledge designs, allowing feeling evaluation and also other innovative components.var records = await 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 formal AssemblyAI blog.Image source: Shutterstock.