Sha256: a3868ee54c78c6f08d0baa2a68ad13cadc18f4b2366ef64de2f5b6864c36a53c

Contents?: true

Size: 1.53 KB

Versions: 99

Compression:

Stored size: 1.53 KB

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true
# BSD 2-Clause License
# 
# Copyright (c) 2023, Gregory Cohen
# All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 
# 1. Redistributions of source code must retain the above copyright notice, this
   # list of conditions and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright notice,
   # this list of conditions and the following disclaimer in the documentation
   # and/or other materials provided with the distribution.
# 
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

require 'shellwords'

$stdin.each_line do |line|
  print line
  system "espeak #{line.chomp.shellescape} || flite #{line.chomp.shellescape}"
end

Version data entries

99 entries across 49 versions & 6 rubygems

Version Path
aliens-1.0.72 ./bin/speakcat
aliens-1.0.72 ./non_compiled_programs/speakcat
freespeech-1.0.72 ./non_compiled_programs/speakcat
freespeech-1.0.72 ./bin/speakcat
freespeech-1.0.71 ./non_compiled_programs/speakcat
freespeech-1.0.71 ./bin/speakcat
elonmusk-1.0.71 ./non_compiled_programs/speakcat
elonmusk-1.0.71 ./bin/speakcat
ufos-1.0.71 ./non_compiled_programs/speakcat
ufos-1.0.71 ./bin/speakcat
aliens-1.0.71 ./non_compiled_programs/speakcat
aliens-1.0.71 ./bin/speakcat
elonmusk-1.0.56 ./de/non_compiled_programs/speakcat
elonmusk-1.0.56 ./non_compiled_programs/speakcat
elonmusk-1.0.56 ./de/bin/speakcat
elonmusk-1.0.56 ./bin/speakcat
elonmusk-1.0.53 ./bin/speakcat
elonmusk-1.0.53 ./non_compiled_programs/speakcat
elonmusk-1.0.43 ./bin/speakcat