Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speakr on windows #10

Open
purlubru opened this issue Feb 9, 2022 · 1 comment
Open

speakr on windows #10

purlubru opened this issue Feb 9, 2022 · 1 comment

Comments

@purlubru
Copy link

purlubru commented Feb 9, 2022

Hi, during the class of @agricolamz, I've run the following code and get the following problem. So my teacher and me don't know, what to do.

> options(speakr.praat.path = 'C:/Users/NewUser/Desktop/praat.exe')
> script <- system.file("extdata", "get-formants-args.praat", package = "speakr")
> ormants <- praat_run(script, "Hertz", 0.03, capture = TRUE) %>%
+   read_csv()
Warning message:
In system2(getOption("speakr.praat.path"), c("--run", c(script,  :
  running command '"C:/Users/NewUser/Desktop/praat.exe" --run C:/Program Files/R/R-4.1.0/library/speakr/extdata/get-formants-args.praat Hertz 0.03' had status 65535

Here is my info:

> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)

Matrix products: default

locale:
[1] LC_COLLATE=Russian_Russia.1251  LC_CTYPE=Russian_Russia.1251   
[3] LC_MONETARY=Russian_Russia.1251 LC_NUMERIC=C                   
[5] LC_TIME=Russian_Russia.1251    
system code page: 1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] forcats_0.5.1        stringr_1.4.0        dplyr_1.0.7         
 [4] purrr_0.3.4          readr_1.4.0          tidyr_1.1.3         
 [7] tibble_3.1.2         ggplot2_3.3.5        tidyverse_1.3.1     
[10] phonfieldwork_0.0.11 speakr_3.2.0        

loaded via a namespace (and not attached):
 [1] tidyselect_1.1.1  xfun_0.24         haven_2.4.1       colorspace_2.0-2 
 [5] vctrs_0.3.8       generics_0.1.0    htmltools_0.5.1.1 yaml_2.2.1       
 [9] utf8_1.2.1        rlang_0.4.11      pillar_1.6.1      withr_2.4.2      
[13] glue_1.4.2        DBI_1.1.1         dbplyr_2.1.1      modelr_0.1.8     
[17] readxl_1.3.1      lifecycle_1.0.0   munsell_0.5.0     gtable_0.3.0     
[21] cellranger_1.1.0  rvest_1.0.0       evaluate_0.14     labeling_0.4.2   
[25] uchardet_1.1.0    knitr_1.33        fansi_0.5.0       broom_0.7.8      
[29] Rcpp_1.0.7        scales_1.1.1      backports_1.2.1   jsonlite_1.7.2   
[33] farver_2.1.0      fs_1.5.0          hms_1.1.0         digest_0.6.27    
[37] stringi_1.6.2     grid_4.1.0        cli_3.0.0         tools_4.1.0      
[41] magrittr_2.0.1    crayon_1.4.1      pkgconfig_2.0.3   MASS_7.3-54      
[45] ellipsis_0.3.2    xml2_1.3.2        tuneR_1.3.3.1     reprex_2.0.0     
[49] lubridate_1.7.10  rstudioapi_0.13   assertthat_0.2.1  rmarkdown_2.9    
[53] httr_1.4.2        R6_2.5.0          signal_0.7-7      compiler_4.1.0
@stefanocoretta
Copy link
Owner

Hi! Can you try from an R session file.exists() with the path you have installed Praat check that the output is TRUE?

Have you tried not setting the path and installing Praat in the default path (C:/Program Files/Praat.exe)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants