vacabook_api's People
vacabook_api's Issues
Text to Speech による音声変換
概要
- Text to Speech による音声変換機能を作成する。
- 単語登録時に Text to Speech のエンドポイントに音声変換をリクエスト。
- レスポンス内のbase64 エンコードされた 音声データ(mp3)を保存。
検討内容
-
音声データの保管場所
- 案1: クラウドストレージ
- mp3ファイルとして配信できる
- サイズが大きい場合にはデータベースで格納/取得するより高速
- 案2: データベース
- 音声データのサイズは数KBのためデータ格納/取得に要する時間が気にならない
- 登録/更新/削除の管理が容易
- 案1: クラウドストレージ
-
テーブル構成
- 音声データをユーザ共用のリソースとするため別テーブルを作成
TODO
- 新規モデル
- 新規コントローラー
- TTS クラス追加
時間あれば
- Speech モデルを汎用的な命名にする
初期データ投入
- 管理ユーザ
コンテナ化
やること
- 構成を検討(勉強したいので リバースプロキシ 挟んだり、k8sで動かすことも視野に入れる)
- Dockerfile を作成
- docker compose を作成
注記
- docker-compose で DB を扱うために一時的に config/database.yml を書き換えている
- 本番デプロイする際には、RDSなどで利用するための設定に修正すること
参考
ユーザ認証機能
概要
ログイン機能を実装し、特定のユーザに、ユーザ毎の単語帳を表示させる
TODO
- ログイン前のユーザに対し、全ての API の利用を制限
- Vocabs に user_id のカラムを追加する
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.