Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
4
Task/Speech-synthesis/Sidef/speech-synthesis.sidef
Normal file
4
Task/Speech-synthesis/Sidef/speech-synthesis.sidef
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
func text2speech(text, lang='en') {
|
||||
Sys.run("espeak -v #{lang} -w /dev/stdout #{text.escape} | aplay");
|
||||
}
|
||||
text2speech("This is an example of speech synthesis.");
|
||||
6
Task/Speech-synthesis/Swift/speech-synthesis.swift
Normal file
6
Task/Speech-synthesis/Swift/speech-synthesis.swift
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import Foundation
|
||||
|
||||
let task = NSTask()
|
||||
task.launchPath = "/usr/bin/say"
|
||||
task.arguments = ["This is an example of speech synthesis."]
|
||||
task.launch()
|
||||
Loading…
Add table
Add a link
Reference in a new issue