#!/usr/bin/python2
# -*- coding: cp1251 -*-
import pythoncom
from thread import *
from win32com.client import constants
import win32com.client
def thread():
sapi = win32com.client.Dispatch("SAPI.SpVoice")
phrase = "Привет, мир!"
pythoncom.CoInitialize()
sapi.Speak(phrase, constants.SVSFlagsAsync)
pythoncom.CoUninitialize()
start_new_thread(thread, ())