Skip to content

Commit

Permalink
chore: add greek lang
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed May 7, 2024
1 parent 6bb1929 commit d3767e2
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/MemoriWidget/MemoriWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,7 @@ const MemoriWidget = ({
// }
}

// https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=tts
switch (voiceLang) {
case 'IT':
voice = `${
Expand Down Expand Up @@ -1609,6 +1610,11 @@ const MemoriWidget = ({
voiceType === 'MALE' ? 'fi-FI-HarriNeural' : 'fi-FI-SelmaNeural'
}`;
break;
case 'EL':
voice = `${
voiceType === 'MALE' ? 'el-GR-NestorasNeural' : 'el-GR-AthinaNeural'
}`;
break;
default:
voice = `${
voiceType === 'MALE' ? 'it-IT-DiegoNeural' : 'it-IT-IsabellaNeural'
Expand Down Expand Up @@ -1665,6 +1671,9 @@ const MemoriWidget = ({
case 'FI':
voice = 'fi-FI';
break;
case 'EL':
voice = 'el-GR';
break;
default:
voice = 'it-IT';
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,12 @@ exports[`renders StartPanel with integrationConfig unchanged 1`] = `
>
Suomi
</option>
<option
aria-label="Ελληνικά"
value="EL"
>
Ελληνικά
</option>
</select>
</div>
<button
Expand Down
6 changes: 6 additions & 0 deletions src/components/layouts/__snapshots__/Chat.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,12 @@ exports[`renders Chat layout unchanged 1`] = `
>
Suomi
</option>
<option
aria-label="Ελληνικά"
value="EL"
>
Ελληνικά
</option>
</select>
</div>
<button
Expand Down
6 changes: 6 additions & 0 deletions src/components/layouts/__snapshots__/FullPage.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,12 @@ exports[`renders FullPage layout unchanged 1`] = `
>
Suomi
</option>
<option
aria-label="Ελληνικά"
value="EL"
>
Ελληνικά
</option>
</select>
</div>
<button
Expand Down
6 changes: 6 additions & 0 deletions src/components/layouts/__snapshots__/Totem.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,12 @@ exports[`renders Totem layout unchanged 1`] = `
>
Suomi
</option>
<option
aria-label="Ελληνικά"
value="EL"
>
Ελληνικά
</option>
</select>
</div>
<button
Expand Down
1 change: 1 addition & 0 deletions src/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const chatLanguages = [
{ value: 'RU', label: 'Русский' },
{ value: 'PL', label: 'Polski' },
{ value: 'FI', label: 'Suomi' },
{ value: 'EL', label: 'Ελληνικά' },
];

export const allowedMediaTypes = [
Expand Down

0 comments on commit d3767e2

Please sign in to comment.