项目作者: Gedevan-Aleksizde

项目描述 :
ka*R*aokeStudio
高级语言: R
项目地址: git://github.com/Gedevan-Aleksizde/karaokestudio.git
创建时间: 2019-11-04T16:48:29Z
项目社区:https://github.com/Gedevan-Aleksizde/karaokestudio

开源协议:

下载


karaokestudio

kaʀaokeStudio

This is an entertainment for April Fool in 2020.

これは2020年のエイプリルフール企画です.

Introduction in English

日本語解説は下の方を見てください.

Requirements

  • Linux OS (Ubuntu >=18.04 recommended)
  • RStudio (>= 1.2.5001)
  • Google Cloud Platform (GCP) account
  • Headphone and microphone

installation & setup

  1. Create a Google Cloud Console project

https://console.cloud.google.com/

Then activate the following APIs

  • YouTube Ads Reach API
  • YouTube Anlytics API
  • YouTube Data API
  • YouTube Reporting API
  • Google Cloud Storage JSON API
  • Google Natural Language API
  • Google Cloud Translation API
  • Google Cloud Speech API
  1. Generate a client_id, client secret, and service cledentials as a json file

The client ID is formed like “XXXX.apps.gooleusercontent.com”

In detail:

https://cloud.google.com/storage/docs/authentication#generating-a-private-key

  1. install Python, portaudio, and pyaudio

Prinamly, install portaudio

  1. sudo apt install portaudio19-dev

then install Python3.x (if not installed yet) and pyaudio module

e.g.:

  1. sudo add-apt-repository ppa:deadsnakes/ppa
  2. sudo apt update
  3. sudo apt install python3.8 python3-pip
  4. pip3.8 install pyaudio
  1. install mecab, mecab-ipadic-neologd

This page is also useful: https://rpubs.com/auroratsai/440717

Download source at https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE

Then, run the following

  1. cd mecab-X.X
  2. ./configure
  3. make
  4. make check
  5. su
  6. make install

Next, install mecab-ipadic-neologd, the dictionary.

https://github.com/neologd/mecab-ipadic-neologd

  1. このパッケージをインストールする

日本語の導入解説

要件

  • Linux OS (Ubuntu 18.04以降推奨)
  • RStudio (1.2.5001以降推奨)
  • Google Cloud Platform (GCP) アカウント
  • ヘッドフォンとマイク

インストールとセットアップ

  1. Google Cloud Console プロジェクトを作成する

https://console.cloud.google.com/

以下のAPIをアクティベートする

  • YouTube Ads Reach API
  • YouTube Anlytics API
  • YouTube Data API
  • YouTube Reporting API
  • Google Cloud Storage JSON API
  • Google Natural Language API
  • Google Cloud Translation API
  • Google Cloud Speech API
  1. クライアントID, クライアントシークレット, そしてjson形式の認証情報を発行する

クライアントIDは “XXXX.apps.gooleusercontent.com” の形式で得られるものです.

詳細は以下を参照

https://cloud.google.com/storage/docs/authentication#generating-a-private-key

  1. Pythonとサウンドデバイスライブラリのインストール

まずportaudioライブラリをインストールする.

  1. sudo apt install portaudio19-dev

python3.x をインストールし, pyaudio モジュールをインストールする

例えば,

  1. sudo add-apt-repository ppa:deadsnakes/ppa
  2. sudo apt update
  3. sudo apt install python3.8 python3-pip
  4. pip3.8 install pyaudio

python環境は色々あるので各自対応すること

  1. meacabmecab-ipadic-neologd をインストールする

リンク先に日本語で書いてあるので解説省略.

https://taku910.github.io/mecab/

https://github.com/neologd/mecab-ipadic-neologd

  1. このパッケージをインストールする