それでは、R で音声を入れる方法を解説します まずはセットアップです。パッケージを読み込み、取得した API キーを環境変数として設定します。また、このほかにも依存しているプログラムをインストールする必要がありますが、詳しくはブログをご覧ください。 それができたら、あとは関数を実行するだけです。このときに、原稿のファイル、スライドのファイル、声の種類、出力するビデオファイルの名前を指定します。