Skip to content

Commit f84a122

Browse files
committed
cleanup, add explanation
1 parent a0b2a0b commit f84a122

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Assets/Scripts/Tools/OpenAITTS/Editor/OpenAITTS.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public void CreateGUI()
3131

3232
// try to load secret key from file
3333
string secretKeyPath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + Path.DirectorySeparatorChar + ".openaikey";
34-
if (System.IO.File.Exists(secretKeyPath))
34+
if (File.Exists(secretKeyPath))
3535
{
36-
secretKey = System.IO.File.ReadAllText(secretKeyPath).Trim();
36+
secretKey = File.ReadAllText(secretKeyPath).Trim();
3737
Debug.Log("Secret key found: " + secretKey);
3838
} else
3939
{
@@ -43,8 +43,11 @@ public void CreateGUI()
4343

4444
return;
4545
}
46+
47+
Label explanation = new Label("Enter the text you want to convert to speech. Use [CUT] to split the text into multiple clips. Things in <angle brackets> will be ignored. Output is stored in Assets/TTSOutput.");
48+
explanation.style.whiteSpace = WhiteSpace.Normal;
49+
root.Add(explanation);
4650

47-
// scrool view
4851
ScrollView scrollView = new ScrollView();
4952
root.Add(scrollView);
5053

0 commit comments

Comments
 (0)