網路上的window.speechSynthesis教學主要都只有說切換指定語言
像是這樣就能切換成中文語音:
const synth = window.speechSynthesis;
const speak = (msg) => {| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |
| package main | |
| import ( | |
| "net/http" | |
| "os" | |
| "bytes" | |
| "path" | |
| "path/filepath" | |
| "mime/multipart" | |
| "io" |
You can check here for getting the latest version. Change the wget url to download newer versions.
| function ksort(obj){ | |
| var keys = Object.keys(obj).sort() | |
| , sortedObj = {}; | |
| for(var i in keys) { | |
| sortedObj[keys[i]] = obj[keys[i]]; | |
| } | |
| return sortedObj; | |
| } |