From 2e4f7f7da4b3748205c835eabf73cdd924394d72 Mon Sep 17 00:00:00 2001 From: klappstuhl24 Date: Sat, 6 Apr 2024 16:55:30 +0200 Subject: [PATCH] Neue API Keys --- 3d Prototyp/Assets/Scripts/Text2Speech.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3d Prototyp/Assets/Scripts/Text2Speech.cs b/3d Prototyp/Assets/Scripts/Text2Speech.cs index 9bd90378..50095cb6 100644 --- a/3d Prototyp/Assets/Scripts/Text2Speech.cs +++ b/3d Prototyp/Assets/Scripts/Text2Speech.cs @@ -30,14 +30,14 @@ public class Text2Speech : MonoBehaviour private AudioSource _audioSource; - private readonly string _googelCloudApiKey = "AIzaSyDNpkVyAUU4AvSwAErVMlZ1lSvGfpkEs0Q"; + private readonly string _googelCloudApiKey = "AIzaSyCVfKH5YOH9gcPamTtbeX5nPj9wWkKB1y4"; private readonly string _google_CloudApiUrl = "https://texttospeech.googleapis.com/v1/text:synthesize"; private readonly string _outputPath = "path/to/audio.wav"; private string _tmpPath = "tmp_audio.wav"; private OpenAIAPI _openAiApi; private Conversation? _conversation; - private readonly string _openAiApiKey = "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"; + private readonly string _openAiApiKey = "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"; private readonly string _prompt = "Write a short text for a Developer as an NPC in a game. The Developer works at a small gamedevelopement office and its manager is called Gottfried who is responsable for all the Developers needs. The text should be based on the following bullet-point context, which describes the events of the last moments. Remember to only respond with the short text that only this ONE Developer should speak and nothing else! The context is: "; void Start()