Skip to content

Diary-to-Speech is a Go-based CLI tool that converts English markdown diaries into mp3 files using Google's Text-to-Speech API for language learning.

License

Notifications You must be signed in to change notification settings

MasashiFukuzawa/diary-to-speech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diary-to-speech

MIT License

Diary-to-Speech is a Go-based CLI tool that converts English markdown diaries into mp3 files using Google's Text-to-Speech API for language learning.

Prerequisites

How To Use

$ git clone [email protected]:MasashiFukuzawa/diary-to-speech.git
$ cd diary-to-speech

# for tutorial
# =====================================================
$ cat << EOF > .env
GOOGLE_APPLICATION_CREDENTIALS=$PWD/secrets/credentials.json
LANGUAGE_CODE=en-US
MARKDOWN_FILEPATH_BASE=$PWD/example
OUTPUT_PATH_BASE=$PWD/example
EOF

$ year=$(date +%Y)
$ date=$(date +%m-%d)
$ mkdir example/$year
$ cp example/2023/04-30.md example/$year/$date.md
# =====================================================

$ go mod tidy
$ go run cmd/diary-to-speech/main.go

# You can specify date.
$ go run cmd/diary-to-speech/main.go -date 2024-01-01

About

Diary-to-Speech is a Go-based CLI tool that converts English markdown diaries into mp3 files using Google's Text-to-Speech API for language learning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages