-
Notifications
You must be signed in to change notification settings - Fork 0
/
sapi_demo.py
27 lines (22 loc) · 1.64 KB
/
sapi_demo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# import the required module from text to speech conversion
import win32com.client
# Calling the Disptach method of the module which
# interact with Microsoft Speech SDK to speak
speaker = win32com.client.Dispatch("SAPI.SpVoice")
# Sample Text Provided to Test
sample_text = """Fundraising has always been something of a black box.
High-flying companies make it seem like a breeze, but most entrepreneurs lose sleep over it.
My first startup was called Pursuit.com and although we successfully raised a seed round,
it was incredibly tough (we were eventually aqui-hired by Facebook).
DocSend is my second startup, and it has taught me a lot about the process — not only because of our own fundraising,
but because the product itself reveals big pitching trends in a unique way.
Since 2014, over 100,000 users have shared over 2.2 million links through our document tracking and sharing platform,
and these documents have received over 220 million views. Thousands of founders share their funding decks with prospective investors every day,
in addition to our product’s other uses for sales, business development and customer success.
To get insights about all this activity, we have a long-running partnership with Harvard Business School,
where we’ve been analyzing the anonymized fundraising data of startups attempting to raise a Seed or an A round."""
speaker.Speak(sample_text)
# while 1:
# print("Enter the word you want to speak it out by computer")
# s = input()
# speaker.Speak(s)