I've had a search on the forum and I can't find it, but I'm sure that someone once posted a link to download the Tae Kim TTS audio files. Can anyone point me in the right direction?
Thanks!!
Thanks!!
Quote:The file link that you requested is not valid. Please contact link publisher or try to make a search.There another upload or mirror for this? Searched as well but there doesn't seem to be anything obvious in search.

Quote:#!/usr/bin/env pythonMaybe someone else here can help out? I don't have that computer with the Misaki voice around anymore.
# -*- coding: utf-8 -*-
import codecs
from comtypes.client import CreateObject
stream = CreateObject("SAPI.SpFileStream")
tts = CreateObject("SAPI.SpVoice")
format = CreateObject("SAPI.SpAudioFormat")
voices = tts.GetVoices()
for i in range(len(voices)):
if voices[i].GetDescription() == u'VW Misaki':
tts.Voice = voices[i]
break
from comtypes.gen import SpeechLib
file = codecs.open("tae_kim.tsv", "r", "utf-8")
i = 0
kanji = None
line = file.readline()
line = line.replace("\n", "")
line = line.replace("\r", "")
while line != "":
line = file.readline()
line = line.replace("\n", "")
line = line.replace("\r", "")
if len(line) == 0:
break
fields = line.split("\t",6)
i = i + 1
filename = u"Tae Kim - Basic Grammar_%s.wav" % unicode(i).zfill(3)
format.type = 34
stream.Format = format
stream.Open(filename, SpeechLib.SSFMCreateForWrite)
tts.AudioOutputStream = stream
tts.Speak(fields[1], 0)
stream.Close()
print "".join([filename,"... done!"])
del tts
del stream
##
# End of File
##