Skip to content

Instantly share code, notes, and snippets.

View leso-kn's full-sized avatar

Leso_KN leso-kn

View GitHub Profile
@leso-kn
leso-kn / docker-run-firefox-musl-widevine.sh
Last active February 17, 2025 19:28
Use WidevineCDM on musl (native musl-browsers, uses gcompat only on libwidevinecdm.so)
#!/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 "
@leso-kn
leso-kn / SpeechSynthesizer (Local).vb
Created June 14, 2014 10:41
A simple script for TextToSpeech. (Installed speechsynthesizer)
'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
@leso-kn
leso-kn / SpeechSynthesizer (Internet).vb
Last active August 29, 2015 14:02
A simple script for TextToSpeech. (Internet speechsynthesizer)
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)