Skip to content

Commit

Permalink
check packages
Browse files Browse the repository at this point in the history
  • Loading branch information
agricolamz committed Jun 7, 2020
1 parent 8043a55 commit 33150ae
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Imports:
xml2
Author: George Moroz
Maintainer: George Moroz <[email protected]>
Description: There are a lot of different typical tasks that have to be solved during phonetic research and experiments. This includes creating a presentation that will contain all stimuli, renaming and concatenating multiple sound files recorded during a session, automatic annotation in 'Praat' TextGrids (this is one of the sound annotation standards provided by 'Praat' software, see Boersma & Weenink 2018 <http://www.fon.hum.uva.nl/praat/>), creating an html table with annotations and spectrograms, and converting multiple formats ('Praat' TextGrid, 'EXMARaLDA' and 'ELAN'). All of these tasks can be solved by a mixture of different tools (any programming language has programs for automatic renaming, and Praat contains scripts for concatenating and renaming files, etc.). `phonfieldwork` provides a functionality that will make it easier to solve those tasks independently of any additional tools. You can also compare the functionality with other packages: 'rPraat' <https://CRAN.R-project.org/package=rPraat>, 'textgRid' <https://CRAN.R-project.org/package=textgRid>.
Description: There are a lot of different typical tasks that have to be solved during phonetic research and experiments. This includes creating a presentation that will contain all stimuli, renaming and concatenating multiple sound files recorded during a session, automatic annotation in 'Praat' TextGrids (this is one of the sound annotation standards provided by 'Praat' software, see Boersma & Weenink 2018 <http://www.fon.hum.uva.nl/praat/>), creating an html table with annotations and spectrograms, and converting multiple formats ('Praat' TextGrid, 'EXMARaLDA', 'ELAN', and 'FLEx' flextext). All of these tasks can be solved by a mixture of different tools (any programming language has programs for automatic renaming, and Praat contains scripts for concatenating and renaming files, etc.). `phonfieldwork` provides a functionality that will make it easier to solve those tasks independently of any additional tools. You can also compare the functionality with other packages: 'rPraat' <https://CRAN.R-project.org/package=rPraat>, 'textgRid' <https://CRAN.R-project.org/package=textgRid>.
License: GPL (>= 2)
URL: https://CRAN.R-project.org/package=phonfieldwork, https://agricolamz.github.io/phonfieldwork/
BugReports: https://github.com/agricolamz/phonfieldwork/issues
Expand Down
3 changes: 1 addition & 2 deletions R/concatenate_soundfiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@

concatenate_soundfiles <- function(file_name,
path,
annotation = "textgrid",
options = NULL){
annotation = "textgrid"){

# concatenate sounds ------------------------------------------------------

Expand Down
6 changes: 0 additions & 6 deletions R/create_glossed_document.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,5 @@ create_glossed_document <- function(flextext = NULL,
output_file = output_file)
message(paste0("Output created: ", output_dir, output_file, ".", output_format[1]))
# non-flextext input ------------------------------------------------------
} else if(!is.null(word_level) &
!is.null(gloss_level) &
!is.null(translation_level)){
print("will be done soon")
} else {
stop('You need to specify either flextext or word_level, gloss_level, and translation_level arguments.')
}
}
2 changes: 1 addition & 1 deletion R/textgrid_to_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#'
#' @export

textgrid_to_df <- function(textgrid, tier = 1){
textgrid_to_df <- function(textgrid){
if(grepl("TextGrid", textgrid[2])){
tg <- textgrid
} else{
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ library(phonfieldwork)

## To do:

* export to ELAN, EXMARALDA files
* export to ELAN and EXMARALDA files
* use ELAN and EXMARALDA files in the whole pipline discribed in docs
* add textgrid visualisation
7 changes: 1 addition & 6 deletions man/concatenate_soundfiles.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/textgrid_to_df.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 33150ae

Please sign in to comment.