import_recordings | R Documentation |
This function imports speech recordings stored in a directory into session in
an Emu database. The new session will be named according to the name the user
provides using the targetSessionName
argument. A new bundle will be created
for every file with the file extension specified in the "mediafileExtension"
setting in the database configuration file (usually "wav"). ALternatively,
the user may set up sub-directories in the import folder, which will then be
used as recording session names.
import_recordings(
emuDBhandle,
dir,
media_pattern = ".*",
targetSessionName = "0000",
downsample.to = NULL,
verbose = TRUE
)
emuDBhandle |
The Emu database handle. |
dir |
The directory containing speech recordings or session directories. |
targetSessionName |
The default session name, if not specified using sub-directories in the import folder. |
downsample.to |
Set the sampling frequency to downsample the input file to before writing to the database. A |
verbose |
Should additional information and progress bar be displayed to the user? |
In order to ensure that the database always contains a mono sound file, the
single channel indicated by the speech.channel
argument will be extracted
and stored in the database.
The function also makes sure that 'OSCI' and 'SPEC' perspectives are defined for the database.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.