Blockchain

AssemblyAI Reveals C#. NET SDK for Advanced Sound Transcription as well as Study #.\n\nLuisa Crawford.\nSep 03, 2024 05:37.\n\nAssemblyAI releases a C#. NET SDK, enabling designers to transcribe and also assess audio, and also administer LLMs making use of LeMUR.\n\n\n\n\nAssemblyAI has actually declared the launch of its own brand new C#. NET SDK, designed to promote audio transcription as well as evaluation for designers utilizing.NET languages including C#, VB.NET, and F#. The SDK intends to simplify making use of AssemblyAI's innovative Speech AI designs, according to AssemblyAI.\nKey Functions and also Targets.\nThe SDK has been actually established with a number of essential purposes in mind:.\n\nOffer an user-friendly interface for all AssemblyAI versions and also attributes using colloquial C

.Make sure being compatible with a number of platforms, including.NET 6.0,. Web Platform 4.6.2, and.NET Requirement 2.0 as well as above.Lessen reliances to prevent version disputes as well as the need for binding redirects.Translating Audio Info.Among the key functions of the SDK is actually audio transcription. Developers can easily transcribe audio files asynchronously or in real-time. Below is actually an instance of exactly how to record an audio file:.using AssemblyAI.using AssemblyAI.Transcripts.var client = new AssemblyAIClient(" YOUR_API_KEY").var records = wait for client.Transcripts.TranscribeAsync( new TranscriptParams.AudioUrl="https://storage.googleapis.com/aai-docs-samples/nbc.mp3". ).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).For local data, identical code can be made use of to obtain transcription.wait for making use of var stream = brand new FileStream("./ nbc.mp3", FileMode.Open).var transcript = wait for client.Transcripts.TranscribeAsync(.flow,.brand new TranscriptOptionalParams.LanguageCode = TranscriptLanguageCode.EnUs.).transcript.EnsureStatusCompleted().Console.WriteLine( transcript.Text).Real-Time Sound Transcription.The SDK also holds real-time audio transcription utilizing Streaming Speech-to-Text. This feature is actually specifically beneficial for requests calling for urgent handling of audio records.using AssemblyAI.Realtime.wait for utilizing var scribe = brand new RealtimeTranscriber( new RealtimeTranscriberOptions.ApiKey="YOUR_API_KEY",.SampleRate = 16_000. ).transcriber.PartialTranscriptReceived.Subscribe( records =&gtConsole.WriteLine($" Limited: transcript.Text "). ).transcriber.FinalTranscriptReceived.Subscribe( transcript =&gtConsole.WriteLine($" Final: transcript.Text "). ).wait for transcriber.ConnectAsync().// Pseudocode for acquiring audio coming from a microphone as an example.GetAudio( async (piece) =&gt wait for transcriber.SendAudioAsync( portion)).wait for transcriber.CloseAsync().Utilizing LeMUR for LLM Apps.The SDK integrates with LeMUR to enable developers to construct sizable foreign language style (LLM) functions on vocal records. Below is actually an instance:.var lemurTaskParams = brand-new LemurTaskParams.Prompt="Give a brief recap of the records.",.TranscriptIds = [transcript.Id],.FinalModel = LemurModel.AnthropicClaude3 _ 5_Sonnet..var response = wait for client.Lemur.TaskAsync( lemurTaskParams).Console.WriteLine( response.Response).Sound Intellect Styles.Furthermore, the SDK includes integrated support for audio cleverness models, making it possible for conviction study and various other innovative attributes.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)// GOOD, NEUTRAL, or downside.Console.WriteLine( result.Confidence).Console.WriteLine($" Timestamp: result.Start - result.End ").For more information, visit the formal AssemblyAI blog.Image source: Shutterstock.

Articles You Can Be Interested In