File size: 628 Bytes
c13064d
 
 
d09fd1e
 
c13064d
 
 
 
d09fd1e
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import http.server
import ssl

#httpd = http.server.HTTPServer(('localhost', 4000), http.server.SimpleHTTPRequestHandler)
httpd = http.server.HTTPServer(('0.0.0.0', 4000), http.server.SimpleHTTPRequestHandler)
#httpd.socket = ssl.wrap_socket(httpd.socket, certfile='./server.pem', server_side=True)

print("Serving on http://localhost:4000")
httpd.serve_forever()

#todos : 
#  will need to include background fetch api (pwa ) to download the audio file in the background
# add speech synthesis api ()to generate the audio as alternative to generation vio openAI
#use share target  (pwa) so that pages can be shared to the app