Hi,
I want to convert text to speech in Matlab on Linux. With windows I can use the .NET library, but on Linux it does not work, I think. Do you know an other possibility or how it could work on Linux?
Regards

답변 (1개)

jibrahim
jibrahim 2023년 5월 1일

0 개 추천

Hi christopher,
You can use the text2speech function (Audio Toolbox).
You will need an internet connection, and an active subscription to a text-to-speech service of your choice – Google™ Cloud Speech-to-Text API, IBM™ Watson Speech to Text API, Microsoft™ Azure Speech Services API, or Amazon™ Polly.

댓글 수: 5

Christopher Dirks
Christopher Dirks 2023년 5월 1일
ok thanks. Can you give me a hint how it works with the subscription?
The steps concerning the subscription vary depending on the provider. The linked submission above has links to get you started.
Once you have a subscription and have the required files on path, usage is quite simple. For example:
text = "Hello world.";
googleSpeechClient = speechClient('Google');
[speech,fs] = text2speech(googleSpeechClient,text);
sound(speech,fs)
Christopher Dirks
Christopher Dirks 2023년 5월 1일
So I have to download one of the functions? Do I have to put it then in the current folder or where do I have to place it?
jibrahim
jibrahim 2023년 5월 1일
you will need to download the referenced File Exchange submission and follow the intructions included in the example.
Walter Roberson
Walter Roberson 2023년 5월 1일
You can use the Add-On Explorer to install the submission; makes it easier.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

태그

질문:

2023년 5월 1일

댓글:

2023년 5월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by