Cov txheej txheem:

Arduino Text to Speech Converter Siv LM386 - Tham Arduino Project - Talkie Arduino Library: 5 Kauj Ruam
Arduino Text to Speech Converter Siv LM386 - Tham Arduino Project - Talkie Arduino Library: 5 Kauj Ruam

Video: Arduino Text to Speech Converter Siv LM386 - Tham Arduino Project - Talkie Arduino Library: 5 Kauj Ruam

Video: Arduino Text to Speech Converter Siv LM386 - Tham Arduino Project - Talkie Arduino Library: 5 Kauj Ruam
Video: Arduino based Text to Speech (TTS) Converter 2024, Kaum ib hlis
Anonim
Arduino Text to Speech Converter Siv LM386 | Tham Arduino Project | Talkie Arduino Library
Arduino Text to Speech Converter Siv LM386 | Tham Arduino Project | Talkie Arduino Library

Nyob zoo cov neeg, hauv ntau txoj haujlwm peb xav kom arduino tham qee yam xws li tham lub moos lossis qhia qee cov ntaub ntawv raws li cov lus qhia no peb yuav hloov cov ntawv rau hauv kev hais lus siv Arduino.

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau

Rau cov lus qhia no koj yuav xav tau cov khoom hauv qab no: Arduino board A speakerLM3862x 10k resistor1x 0.1uF capacitor2x 10uF capacitor1x 0.05uF capacitor1x 220uF capacitor1x 100k PotentiometerPower Supply

Kauj Ruam 2: Txhim Kho Talkie Library hauv Koj Arduino IDE

Txhim kho Talkie Library hauv Koj Arduino IDE
Txhim kho Talkie Library hauv Koj Arduino IDE

Tam sim no Tus Thawj Saib Xyuas Tsev Qiv Ntawv yuav nyob ntawm koj lub vijtsam. Hauv kab ntawv tshawb fawb hom Talkie thiab nyem rau ntawm lub pob install. Lub tsev qiv ntawv yuav raug teeb tsa.

Kauj Ruam 3: Kev Sib Txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

Thawj daim duab yog yuav ua li cas siv lub tshuab hluav taws xob siv LM386. Yog li lub tswv yim yooj yim yog lub suab yuav tawm los ntawm Arduino thiab peb yuav tsum ua kom nrov nrov kom ua li ntawd peb thiaj xav tau lub tshuab hluav taws xob hais lus yog vim li cas peb thiaj siv LM386 thiab nws lub tshuab hluav taws xob zoo li koj tuaj yeem ua tau pom hauv daim duab. Then tom qab ntawd hloov lub mic hauv LM386 lub tshuab hluav taws xob peb yuav txuas nws mus rau Arduino raws li qhia hauv lwm qhov Circuit

Kauj ruam 4: Code

Code
Code

Lub tsev qiv ntawv Talkie no ua tau zoo heev thiab nws muaj ntau dua 1000 lo lus thiab lus txib. Nws muaj ntau qhov piv txwv, koj tuaj yeem sim lawv txhua qhov tab sis ntawm no peb siv cov lej yooj yim los piav qhia kev ua haujlwm. Luam cov cai hauv qab no:#suav nrog "Talkie.h" //Talkie.h tau siv los pib lub tsev qiv ntawv no thiab teeb tsa Digital tus pin 3 ntawm Arduino raws li tus pin tso tawm#suav nrog "Vocab_US_Large.h" //Vocab_US_Large.h yog siv los ceeb toom#suav nrog "Vocab_Special.h" //Vocab_Special.h siv los siv lub suab pauseTalkie // txhais lub hom phiaj 'tus nqi' los siv cov lus txib tsis teeb tsa () {} tsis muaj dab tsi voj () {voice.say (spPAUSE2); suab.say (sp2_DANGER); suab.say (sp2_DANGER); suab.say (sp3_STORM); suab.say (sp3_IN); suab.say (sp3_THE); suab.say (sp3_NORTH);/*Thawj lo lus txib voice.say (spPAUSE2) yog siv sijhawm luv luv thaum rov hais dua cov lus ceeb toom. Thiab cov lus txib tom ntej no tsuas yog cov lus yooj yooj yim uas hais txog: DANGER DANGER STORM IN NORTH.*/} Tom qab txhua qhov no Tshaj tawm cov cai rau arduino

Kauj Ruam 5: Suab Tso Tawm

Suab Tso Tawm
Suab Tso Tawm

Thaum kawg tso cov cai hauv Arduino thiab txuas lub hwj chim rau nws. Sai li sai tau thaum koj lub zog hauv Circuit koj yuav pib hnov cov lus ceeb toom! Yog tias koj tsis tau txais lub suab meej ces sim kho lub pob qhov rooj ntawm lub lauj kaub lossis tshawb xyuas yog tias Arduino tau txais lub hwj chim tsim nyog thiab xyuas kom tseeb tias GND ntawm Arduino txuas nrog rau hauv av ntawm Circuit Court.

Pom zoo: