Skip to content

Commit

Permalink
2647 fix voice (#2649)
Browse files Browse the repository at this point in the history
* 2647 manage voices: fix
  • Loading branch information
ElenaSpb authored Nov 23, 2024
1 parent e23606b commit 3a6dd2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ class UserAnalyticsServiceImpl(
if (!listTextExercises.contains(seriesType))
audioFileMetaData.text = text.replace(" ", ", ")
val currentUser = userAccountService.getCurrentUser()
audioFileMetaData.voice = choseVoiceForUser(currentUser)
// todo use choseVoiceForUser(currentUser) after moving to yandex speechKit v3
audioFileMetaData.voice = Voice.marina.name
setSpeedForUser(currentUser, exerciseId, audioFileMetaData)
return audioFileMetaData
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ yandex.generationAudioLink=https://tts.api.cloud.yandex.net/speech/v1/tts:synthe
yandex.folderId=${YANDEX_FOLDER_ID:b1g0m877l9r22ngujisu}
yandex.format=oggopus
#yandex.emotion=good
yandex.emotions=neutral,good
yandex.emotions=friendly
yandex.folderForFiles=frontend/public

brn.picture.file.default.path=pictures/%s.jpg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ internal class UserAnalyticsServiceTest {
metaDataResult.voice shouldBe Voice.marina.name
}

@Test
// @Test todo: after moving to v3 yandex speech kit
fun `should prepareAudioFileMetaData with lera voice up to 18 years old user`() {
// GIVEN
val studyHistory = mockk<StudyHistory>()
Expand Down

0 comments on commit 3a6dd2b

Please sign in to comment.