Base URL: http://translate.google.com/translate_tts
It converts written words into audio. It accepts GET requests.
q
The query string to convert to audio
tl
Translation language, for example, ar for Arabic, or en-us for English
| import os | |
| import torch | |
| import torch.utils.data | |
| import torchvision | |
| from PIL import Image | |
| from pycocotools.coco import COCO | |
| class myOwnDataset(torch.utils.data.Dataset): | |
| def __init__(self, root, annotation, transforms=None): | |
| self.root = root |
| #!/usr/bin/python | |
| print "Converting all of the .dav files in this current directory into .mp4 files using ffmpeg" | |
| import os | |
| from subprocess import call | |
| files = [f for f in os.listdir('.') if os.path.isfile(f)] | |
| for f in files: | |
| ext = f.split(".")[-1] | |
| if ext == "dav" or ext == "DAV": |
Base URL: http://translate.google.com/translate_tts
It converts written words into audio. It accepts GET requests.
q
The query string to convert to audio
tl
Translation language, for example, ar for Arabic, or en-us for English