Posts

Showing posts from December 12, 2018

下田町 (青森県)

Image
下田町 廃止日 2006年3月1日 廃止理由 新設合併 百石町・ 下田町 →おいらせ町 現在の自治体 おいらせ町 廃止時点のデータ 国 日本 地方 東北地方 都道府県 青森県 郡 上北郡 団体コード 02410-4 面積 50.44 km 2 総人口 14,282 人 (推計人口、2006年2月1日) 隣接自治体 三沢市、八戸市 上北郡六戸町、上北郡百石町、三戸郡五戸町 町の木 イチイ 町の花 サツキ 町の鳥 ハクチョウ 下田町役場 所在地 〒 039-2192 青森県上北郡下田町中下田135-2 座標 北緯40度35分56.5秒 東経141度23分51.4秒   表示   ウィキプロジェクト 下田町 (しもだまち)は、青森県上北郡の東南部に位置した町である。イオン下田SC開店以降、隣市である八戸市、三沢市のベッドタウン化が進んでいる。 2006年3月1日、上北郡百石町と合併し「おいらせ町」となった。 目次 1 地理 1.1 隣接していた自治体 2 歴史 2.1 沿革 3 産業 3.1 農業 3.2 商業 3.3 工業 4 地域 4.1 教育 4.2 金融機関 5 交通 5.1 バス 5.2 鉄道 5.3 道路 6 名所・旧跡・観光スポット・祭事・催事 6.1 名所・旧跡 6.2 祭事・催事 6.3 特産品 7 関連項目 地理 上北郡の東南部に位置する。東西を十和田湖を源流とする奥入瀬川が流れる。 隣接していた自治体 八戸市 三沢市 上北郡:六戸町、百石町 三戸郡:五戸町 歴史 沿革 1889年(明治22年)4月1日 町村制施行に伴い、下田村が成立。 1969年(昭和44年)8月1日 町制施行して 下田町 となった。 2006年(平成18年)3月1日 上北郡百石町と合併し、おいらせ町となった。

Unable to use python speech_recognition lib Microphone class due to ALSA

Image
up vote 1 down vote favorite 1 I am attempting to write a speech recognition program for the raspberry pi, however I am facing some issues using python's speech_recognition library. From the error messages (posted below) I think the issue may be with the wrong sound card being accessed, however I am able to record with PyAudio (which I think the microphone class uses) as well as 'arecord' Below is the code I am trying to run: import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: while True: audio = r.listen(source) try: printf("You said " + r.recognize(audio)) except LookupError: printf("Could not understand audio") I have made some adjustments to which soundcard is used as default. My "/etc/