import win32com.client
speak = win32com.client.Dispatch('SAPI.SPVOICE')
speak.Speak('程序运行完毕!')

滴滴滴版本:

import win32com.client
import winsound
speak = win32com.client.Dispatch('SAPI.SPVOICE')
winsound.Beep(2021, 3000)
speak.Speak('程序运行完毕!')