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
#!/bin/sh | |
pulse=$(echo /tmp/pulse-*) | |
docker run --rm -ti \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-v /dev/dri:/dev/dri \ | |
-v /run/user/$(id -u)/pulse:/run/pulse \ | |
-v $pulse:$pulse \ | |
alpine \ | |
ash -c " |
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
'You Need to Add a reference to System.Speech | |
'Just click Project->Add Reference->.Net Tab->System.Speech from the list->OK | |
Imports System.Speech | |
Public Voice As New Synthesisis.SpeechSynthesizer | |
Public Sub Say(ByVal Text As String) | |
Voice.Speak(Text) | |
End Sub |
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
Public Module SpeechSynth | |
Enum Language As Integer | |
English = 0 | |
German = 1 | |
French = 2 | |
Spanish = 3 | |
Japanese = 4 | |
Chinese = 5 | |
End Enum | |
Public Sub Say(ByVal Text As String, Optional ByVal Language As Integer = 0) |