From c522cdeb7a0743df7b2682defa7327b8e6857f60 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Wed, 29 Nov 2023 18:30:05 -0500 Subject: [PATCH] fix file paths for linux --- ElevenLabs-DotNet-Tests/Test_Fixture_02_VoicesEndpoint.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElevenLabs-DotNet-Tests/Test_Fixture_02_VoicesEndpoint.cs b/ElevenLabs-DotNet-Tests/Test_Fixture_02_VoicesEndpoint.cs index 9542926..af1d3be 100644 --- a/ElevenLabs-DotNet-Tests/Test_Fixture_02_VoicesEndpoint.cs +++ b/ElevenLabs-DotNet-Tests/Test_Fixture_02_VoicesEndpoint.cs @@ -78,7 +78,7 @@ public async Task Test_05_AddVoice() { { "accent", "american" } }; - var clipPath = Path.GetFullPath("..\\..\\..\\Assets\\test_sample_01.ogg"); + var clipPath = Path.GetFullPath("../../../Assets/test_sample_01.ogg"); var result = await ElevenLabsClient.VoicesEndpoint.AddVoiceAsync("Test Voice", new[] { clipPath }, testLabels); Assert.NotNull(result); Console.WriteLine($"{result.Name}"); @@ -99,7 +99,7 @@ public async Task Test_06_EditVoice() { "accent", "american" }, { "key", "value" } }; - var clipPath = Path.GetFullPath("..\\..\\..\\Assets\\test_sample_01.ogg"); + var clipPath = Path.GetFullPath("../../../Assets/test_sample_01.ogg"); var result = await ElevenLabsClient.VoicesEndpoint.EditVoiceAsync(voiceToEdit, new[] { clipPath }, testLabels); Assert.NotNull(result); Assert.IsTrue(result);