<commit_before># Retrieve file from Facebook

import urllib, convert, re, os
# from speech_py import speech_to_text_offline as STT_o
# from speech_py import speech_to_text_google as STT
from speech_py import speech_to_text_ibm_rest as STT

def transcribe(audio_url):
	if not os.path.isdir('./audio/retrieved_audio'):
		os.makedirs('./audio/retrieved_audio')

	reg_ex = '\w+.mp4'
	file_name = re.search(reg_ex, audio_url).group(0)
	urllib.urlretrieve(audio_url, './audio/retrieved_audio/{}'.format(file_name))
	convert.convert('./audio/retrieved_audio/{}'.format(file_name))
	# Converted in: ./converted/{name}.wav
	return STT('./audio/converted/{}'.format(file_name[:-4]+".wav"))<commit_msg>Modify ffmpeg path heroku 3<commit_after># Retrieve file from Facebook

import urllib, convert, re, os
# from speech_py import speech_to_text_google as STT
from speech_py import speech_to_text_ibm_rest as STT

def transcribe(audio_url):
	if not os.path.isdir('./audio/retrieved_audio'):
		os.makedirs('./audio/retrieved_audio')

	reg_ex = '\w+.mp4'
	file_name = re.search(reg_ex, audio_url).group(0)
	urllib.urlretrieve(audio_url, './audio/retrieved_audio/{}'.format(file_name))
	convert.convert('./audio/retrieved_audio/{}'.format(file_name))
	# Converted in: ./converted/{name}.wav
	return STT('./audio/converted/{}'.format(file_name[:-4]+".wav"))
{'fraction_non_alphanumeric': 0.15149253731343285, 'fraction_numerical': 0.0052238805970149255, 'mean_word_length': 5.841836734693878, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '307813', 'n_tokens_mistral': 506, 'n_tokens_neox': 490, 'n_words': 91}