Skip to content

Instantly share code, notes, and snippets.

View petrLorenc's full-sized avatar

Petr Lorenc petrLorenc

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
* **************************************************************************
* Contributions to this work were made on behalf of the GÉANT project,
* a project that has received funding from the European Union’s Framework
* Programme 7 under Grant Agreements No. 238875 (GN3)
* and No. 605243 (GN3plus), Horizon 2020 research and innovation programme
* under Grant Agreements No. 691567 (GN4-1) and No. 731122 (GN4-2).
* On behalf of the aforementioned projects, GEANT Association is
import requests
import urllib
import sys
import sounddevice as sd
text = "Malá demonstrace hlasu který jde získat z google překladače."
encoded_text = urllib.parse.quote(text)