Skip to content

Commit

Permalink
updates sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraRodgers committed Aug 2, 2023
1 parent 6997ef8 commit d9d2761
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions SampleApp/Program.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
using Deepgram.Transcription;
using Deepgram.Clients;
using Deepgram.Models;
using Newtonsoft.Json;

namespace SampleApp
{
class Program
{
const string API_KEY = "";

static async Task Main(string[] args)
{
DeepgramClient deepgram = new DeepgramClient(new Credentials(API_KEY));
var response = await deepgram.Transcription.Prerecorded.GetTranscriptionAsync(
new UrlSource("https://www.happyhourspanish.com/wp-content/uploads/podcasts/HHS_Podcast_Soccer_Eurocup.mp3"),
var credentials = new Credentials("");
var deepgramClient = new DeepgramClient(credentials);
var response = await deepgramClient.Transcription.Prerecorded.GetTranscriptionAsync(
new UrlSource("https://static.deepgram.com/examples/nasa-spacewalk-interview.wav"),
new PrerecordedTranscriptionOptions()
{
Summarize = "v2",
DetectLanguage = true
Tier = "nova",
FillerWords = true
});

Console.WriteLine(JsonConvert.SerializeObject(response));
Expand Down
2 changes: 1 addition & 1 deletion SampleApp/SampleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Using Include="Deepgram" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

</Project>

0 comments on commit d9d2761

Please sign in to comment.