Search
Preparing search index...
The search index is not available
yuuko
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
yuuko
Eris
Piper
Class Piper
Hierarchy
EventEmitter
Piper
Index
Constructors
constructor
Properties
converter
Command
data
Packet
Count
encoding
libopus
opus
opus
Factory
volume
Level
default
Max
Listeners
Methods
add
Data
Packet
add
Listener
emit
encode
event
Names
get
Data
Packet
get
Max
Listeners
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
reset
reset
Packets
set
Max
Listeners
set
Volume
stop
listener
Count
Constructors
constructor
new
Piper
(
converterCommand
:
string
, opusFactory
:
OpusScript
)
:
Piper
Parameters
converterCommand:
string
opusFactory:
OpusScript
Returns
Piper
Properties
converter
Command
converter
Command
:
ConverterCommand
data
Packet
Count
data
Packet
Count
:
number
encoding
encoding
:
boolean
libopus
libopus
:
boolean
opus
opus
:
null
|
OpusScript
opus
Factory
opus
Factory
:
(
)
=>
OpusScript
Type declaration
(
)
:
OpusScript
Returns
OpusScript
volume
Level
volume
Level
:
number
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Data
Packet
add
Data
Packet
(
packet
:
unknown
)
:
void
Parameters
packet:
unknown
Returns
void
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Piper
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Piper
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
encode
encode
(
source
:
string
|
Stream
, options
:
VoiceResourceOptions
)
:
boolean
Parameters
source:
string
|
Stream
options:
VoiceResourceOptions
Returns
boolean
event
Names
event
Names
(
)
:
(
string
|
symbol
)
[]
Returns
(
string
|
symbol
)
[]
get
Data
Packet
get
Data
Packet
(
)
:
Buffer
Returns
Buffer
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
off
off
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Piper
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Piper
on
on
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Piper
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Piper
once
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Piper
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Piper
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Piper
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Piper
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Piper
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Piper
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
Piper
Parameters
Optional
event:
string
|
symbol
Returns
Piper
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Piper
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Piper
reset
reset
(
)
:
void
Returns
void
reset
Packets
reset
Packets
(
)
:
void
Returns
void
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
Piper
Parameters
n:
number
Returns
Piper
set
Volume
set
Volume
(
volume
:
number
)
:
void
Parameters
volume:
number
Returns
void
stop
stop
(
e
:
Error
, source
:
Duplex
)
:
void
Parameters
e:
Error
source:
Duplex
Returns
void
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
deprecated
since v4.0.0
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Exports
Externals
Eris
Piper
constructor
converter
Command
data
Packet
Count
encoding
libopus
opus
opus
Factory
volume
Level
default
Max
Listeners
add
Data
Packet
add
Listener
emit
encode
event
Names
get
Data
Packet
get
Max
Listeners
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
reset
reset
Packets
set
Max
Listeners
set
Volume
stop
listener
Count
Generated using
TypeDoc
since v4.0.0