arxivの記事をpythonとmacの機能で英語音声に変換する

使っているのは、 python arxivライブラリ(pip install arxivでok) sayコマンド(macでテキストファイルを音声m4aファイルに変換できる) ffmpeg(m4aをmp3に変換できる。macではhomebrewでインストールできる) apple siliconのmac pythonでarxivのAPIをつかい、cond-matで3日前に発表された論文の情報をもらってきます。ローカルにテキストファイルにして保存します。 https://info.arxiv.org/help/api/index.html # making text file import arxiv import numpy as np import datetime def spaceinsert(tin): t2 = ' ' * len(tin) tout = '' for i in range(len(tin)): tout += tin[i] + t2[i] return tout lastdays = 3 day = datetime.date.today() - datetime.timedelta(days=lastdays) fday = day.strftime ( '%Y%m%d' ) floc = f'./dat/arxiv_cm_{fday}' txtloc = floc + '.txt' f = open(txtloc, 'w') print(f'date: {day.strftime ( '%B %d, %Y' )}.') f.write(f'Date: {day.strftime ( '%B %d, %Y' )}.\n\n\n\n') # Construct the default API client. client = arxiv.Client() # Search for the 10 most recent articles matching the keyword "quantum....

フライス盤

18年前に工作講習で習った記憶を呼び覚まして、フライス盤で加工をしてみました。コイルのフランジに追加加工しました。





FRPの粉塵を吸ってくれる、湯本氏 from ISSP




思いだしながらやりましたが、けっこう上手にできて満足。簡単な追加加工なら自分でもできる気がしてきました。(そう言って怪我するのがおちか・・・)


コメント

このブログの人気の投稿

しばらく、うまく見られなかった・・・・しかし解決の兆し

いろんなデータがではじめたか?