1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

micro:bitは文章でも読み上げできるのか?

Posted at

micro:bit Python Editorだと読み上げができる、というのを見つけたので試した件の続編です。

以前の記事

とりあえず、単語と数字を読み上げました。

今回は文章にチャレンジ

今回は長めの文章を2種類読み上げてみました。

I am micro:bit と Nice to meet you としゃべってくれました! 

サンプルコード
sample.py
from microbit import *
import speech

# Code in a 'while True:' loop repeats forever
while True:
    if button_a.was_pressed():
        speech.say("I am microbit")
        display.show('A')
    if button_b.was_pressed():
        speech.say("Nice to meet you!")
        display.show('B')
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?