Published on

Speech to text .md file

Authors

https://www.digitalocean.com/community/tutorials/how-to-build-a-text-to-speech-app-with-web-speech-api#prerequisites

Giới thiệu

Chắc hẳn chúng ta cũng chẳng xa lạ gì với giọng nói thần thánh của "Chị google" rồi nhỉ ^^. Đó là một ứng dụng của việc chuyển văn bản thành giọng nói đó.

Code Blocks

Some Javascript code

var num1, num2, sum
num1 = prompt('Enter first number')
num2 = prompt('Enter second number')
sum = parseInt(num1) + parseInt(num2) // "+" means "add"
alert('Sum = ' + sum) // "+" means combine into a string

Some Python code 🐍

def fib():
    a, b = 0, 1
    while True:            # First iteration:
        yield a            # yield 0 to start with and then
        a, b = b, a + b    # a will now be 1, and b will also be 1, (0 + 1)

for index, fibonacci_number in zip(range(10), fib()):
     print('{i:3}: {f:3}'.format(i=index, f=fibonacci_number))