403Webshell
Server IP : 51.89.169.208  /  Your IP : 216.73.216.126
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/zsh/5.5.1/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/zsh/5.5.1/functions/_say
#compdef say

local ret=1
local -a context line state state_descr tmp
local -A opt_args val_args

_arguments -s -S : \
  '(-a --audio-device)'{-a+,--audio-device=}'[specify audio device]: :->devices' \
  '--bit-rate=[specify bit rate]: :->bit-rates' \
  '--channels=[specify number of channels]:number of channels' \
  '--data-format=[specify output data format]: :->data-formats' \
  '(: -f --input-file)'{-f+,--input-file=}'[specify input file]:input file:_files' \
  '--file-format=[specify output file format]: :->file-formats' \
  '(-i --interactive)-i[display/highlight text as it is spoken]' \
  '(-i --interactive)--interactive=[display/highlight text as it is spoken]:: :->markups' \
  '(-o --output-file)'{-o+,--output-file=}'[specify output file]:output file:_files' \
  '(-n --network-send)'{-n+,--network-send=}'[specify network service/port]:network service/port' \
  '--progress[display progress meter]' \
  '--quality=[specify converter quality level]:quality level (0-127)' \
  '(-r --rate)'{-r+,--rate=}'[specify speech rate]:speech rate (words per minute)' \
  '(-v --voice)'{-v+,--voice=}'[specify voice]: :->voices' \
  '(-f)*: :_guard "^-*" "text to speak"' \
&& ret=0

case $state in
  bit-rates)
    # A file format must have already been provided in order to complete these;
    # also, not every file format supports bit-rate values
    (( $+opt_args[--file-format] )) && {
      tmp=( ${(f)"$(
        command $service \
          --file-format=${opt_args[--file-format]##*:} \
          --bit-rate='?' 2> /dev/null
      )"} )
      tmp=( ${tmp//[[:space:]]##/} )
    }
    if (( $#tmp )); then
      _values 'bit rate' $tmp && ret=0
    else
      _message 'bit rate' && ret=0
    fi
    ;;
  data-formats)
    # A file format must have already been provided in order to complete these
    if (( ! $+opt_args[--file-format] )); then
      _message 'data format' && ret=0
    else
      tmp=( ${(f)"$(
        command $service \
          --file-format=${opt_args[--file-format]##*:} \
          --data-format='?' 2> /dev/null
      )"} )
      tmp=( ${tmp//:/\\:} )
      tmp=( ${^tmp/[[:space:]]##/[}\] )
      _values 'data format' $tmp && ret=0
    fi
    ;;
  devices)
    tmp=( ${(f)"$( command $service -a '?' 2> /dev/null )"} )
    tmp=( ${tmp##[[:space:]]#[0-9]##[[:space:]]##} )
    tmp=( ${tmp//:/\\:} )
    _values 'audio device name or ID' $tmp && ret=0
    ;;
  file-formats)
    tmp=( ${(f)"$( command $service --file-format='?' 2> /dev/null )"} )
    tmp=( ${tmp%%[[:space:]]##\(.*} )
    tmp=( ${tmp//:/\\:} )
    tmp=( ${^tmp/[[:space:]]##/[}\] )
    _values 'file format' $tmp && ret=0
    ;;
  markups)
    tmp=( bold smso smul ${(k)terminfo} )
    _alternative \
      'colors:color:(black red green yellow blue magenta cyan white)' \
      "capabilities:terminfo capability:( ${(j< >)tmp} )" \
    && ret=0
    ;;
  voices)
    tmp=( ${(f)"$( command $service -v '?' 2> /dev/null )"} )
    tmp=( ${tmp%%[[:space:]](#c2,)*} )
    _values voice $tmp && ret=0
    ;;
esac

return ret

Youez - 2016 - github.com/yon3zu
LinuXploit