AceCentre / AACSpeakHelper

Copies the pasteboard. Translates to defined lang, Reads aloud and replaces pasteboard with translated text
https://docs.acecentre.org.uk/products/v/aac-speak-helper-tool/
MIT License
0 stars 1 forks source link

GUI changes #21

Closed willwade closed 1 year ago

willwade commented 1 year ago

I think we need to do a little ui work on the config.

(To get voice list for azure

from azure.cognitiveservices.speech import TextToSpeechClient from azure.cognitiveservices.speech.texttospeech import models from msrest.authentication import CognitiveServicesCredentials


# Your Azure Text-to-Speech subscription key and endpoint
subscription_key = 'YOUR_SUBSCRIPTION_KEY'
service_region = 'YOUR_REGION'
endpoint = f'https://{service_region}.tts.speech.azure.com/'

# Create a TextToSpeechClient
credentials = CognitiveServicesCredentials(subscription_key)
tts_client = TextToSpeechClient(endpoint, credentials)

# Get available voices
voices = tts_client.voice_synthesis.get_voices()

# Iterate through the voices and print their details
for voice in voices:
    print(f"Name: {voice.name}")
    print(f"Language: {voice.locale}")
    print(f"Gender: {voice.gender}")
    print(f"Voice type: {voice.voice_type}")
    print(f"Style list: {voice.style_list}")
    print("-----")

``` )

![image](https://github.com/AceCentre/TranslateAndTTS/assets/229352/2a564d2e-9bed-497f-855b-17285ac98be3)