This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<typename T> | |
__global__ | |
void print_buffer(const T* buf, uint num_elements){ | |
for(int i=0; i<num_elements; i++){ | |
printf("%x ", buf[i]); // print hex values | |
} | |
printf("\n"); | |
} | |
template<typename T> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
import os | |
subscription_key = 'YOUR_SUBSCRIPTION_KEY' | |
location = "<country>" | |
input_file = "sentences.txt" | |
output_folder = "output_mp3" | |
if not os.path.exists(output_folder): |