<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>ORCID:</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Plugin for automatisation of phonetic-phonological analysis and obtaining analytical feedback for Spanish learners</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Plugin</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tamara Couto-Fernández</string-name>
          <email>tamara.cfernandez@udc.es</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Albina Sarymsakova</string-name>
          <email>albina.sarymsakova@udc.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nelly Condori-Fernández</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Patricia</string-name>
          <email>patricia.martin.rodilla@udc.es</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martín-Rodilla</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of A Coruña, Faculty of Computer Science</institution>
          ,
          <addr-line>Camiño do Lagar de Castro, 6, A Coruña, 15008</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of A Coruña, Faculty of Philology</institution>
          ,
          <addr-line>Campus da Zapateira, A Coruña, 15008</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0003</lpage>
      <abstract>
        <p>We present in this article the Plugin for phonetic-phonological analysis in Spanish (PAFe), which consists of a series of scripts (a code written with a programming language (Python) that, implement three different intonation comparison algorithms of an ELE (Spanish as a foreign language) student and a native speaker of Spanish), allowing, in turn, three different types of analysis: global, tonal tendency and intersyllabic. In addition, PAFe has a database to keep a history of different types of data (user profile, pronunciation exercises and audios) and a graphical interface to include reports on pronunciation evolution in Praat, a tool for acoustic analysis. PAFe is a software solution that offers new functionalities of Praat and allows the following: (i) to perform a comparative analysis between the intonational patterns of an ELE student and a native speaker; (ii) to report the evolution of the acquisition of such patterns in Spanish thanks to the history of the stored data. In this way, automated feedback is provided to both students and teachers.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Praat,</title>
    </sec>
    <sec id="sec-2">
      <title>Python. intonation analysis, ICT,</title>
      <sec id="sec-2-1">
        <title>1. Introduction</title>
        <p>
          The present work is framed in the area of
natural language processing, specifically, in the
comparative-contrastive analysis of intonation for
the didactic purposes provided by our original tool
PAFe. Despite the existence of some tools, such
as the Oplustil and Toledo [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ] proposal, or the
study by Strik, Truong, Wet and Cucchiarini [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ],
which
        </p>
        <p>offer results of phonetic-phonological
similarity or detect errors made in pronunciation.
EMAIL:</p>
        <p>Sarymsakova);
(N.</p>
        <p>Couto-Fernández);
Condori-Fernández);
Martín-Rodilla)</p>
        <p>2020 Copyright for this paper by its authors. Use permitted under Creative
same time, nor offers to monitor the evolution of
the students.</p>
        <p>For this reason, we have decided to develop a
system that complements language teaching, in
particular, one that can be used remotely or in
hybrid modalities.</p>
        <p>Our tool offers the functionality to perform an
instant
comparative
analysis
of a
student's
pronunciation, taking as a reference the speech of
a native speaker, and observing the evolution of
this through data stored in history.</p>
        <p>For the development of our plugin, several
technologies have been used to support the work
done, such as Praat, Python and PostgreSQL.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2. Methodology</title>
        <p>
          We start designing our work based on the
following essential principles of intonation
analysis:
1. We annotate the syllables of each speech
act in a Praat textgrid (Boersma and Weenink
[
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]; we identify pitch values of all vowels in
the syllables (voiced or voiced consonants are
measured as well), using the Praat Script
developed by Mateo Ruiz [
          <xref ref-type="bibr" rid="ref10 ref9">9, 10</xref>
          ], which
extracts the absolute values in Hz, relativises
them and draws the standardised melody
graph;
2. we discriminate relevant frequency
values between tonal segments from irrelevant
values; according to Cantero Serena [
          <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
          ],
Font-Rotchés and Cantero Serena [
          <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
          ], less
than 10% difference between segments is
considered imperceptible.
        </p>
        <p>Once we have obtained the relevant data from
the intonation analysis, we move on to the PAFe
architecture.</p>
        <p>Our project develops an extension to an
existing desktop application for acoustic speech
analysis: Praat. Therefore, we start from a
developed architecture to which a new module
(PAFe) is coupled (Figure 1) consisting of Praat
scripts, Python code and a PostgreSQL database.</p>
        <p>
          Praat, through its scripting, allows command
line calls to other systems, as described by
Dragos-PaulPop [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], thus making it possible to
extend the application through the use of other
languages and technologies, external to Praat.
This new module (PAFe) communicates with the
original system by employing new Praat scripts
that are associated with the application's menu
items (see Figure 2), from which these files are
executed. Sometimes, the new module dispenses
with calls to Praat and generates information
windows directly from Python code files. The
intermediary between Praat and the data managed
in the database is Python.
        </p>
        <p>We employ natural language processing and
audio processing techniques in our tool, taking as
our main source the human voice recordings of
native speakers and students. Praat allows us to
extract quantitative information at the prosodic
level from the audios.</p>
        <p>Subsequently, the native/student comparative
algorithms in terms of prosodic aspects that are
presented and implemented by the tool can offer
comparative information between two
native/student audios to provide feedback in
Spanish language learning. These algorithms are
an original contribution implemented in the tool
since there was no algorithmic proposal of this
type for Spanish until now.</p>
        <p>
          We have developed the PAFe Plugin following
an iterative and incremental methodology based
on agile technologies and scrum development
methodology, based on the work of Schwaber and
Sutherland [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. Figure 2: Example of User
Interface visualising the new functionalities added
in Praat
In the following, we describe the development of
our tool.
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>3. Solution: PAFe Plugin</title>
        <p>Our PAFe tool, in its final version, allows
comparative analysis by providing similarity
results and intonation graphs based on pitch
values2 and tonal tendency in each defined
segment and, finally, visualisation of a student's
progress over time. We highlight the following
operations made possible by our plugin:
1. The application allows the creation of
different profiles to facilitate the process of
managing the data uploaded by users.
a) First of all, the teacher is registered.
b) A pupil is then assigned to the teacher
previously registered. This step avoids
confusion if there is more than one user of the
same computer or laptop.
c) Finally, the profile of a native Spanish
speaker is recorded to upload the data that will
serve as a reference for the programme;
2. PAFe enables the management of WAV and
TextGrid files3: our programme includes both
storage and deletion of audio files and
annotations;
3. It also allows for different types of acoustic
analysis (global analysis, tonal tendency
analysis and intersyllabic analysis): the
algorithm that performs the global analysis
consists of dividing the previously saved
audios of learners and native speakers of
Spanish into about 1000 intervals (discarding
silences) to obtain very precise comparative
values. However, this type of analysis does not
provide feedback about possible deviations in
tone but provides generic data on the
percentage similarity of the native speaker's
and learner's audio. As far as tonal tendency
analysis is concerned, the programme works
with .TextGrid annotations and the previously
saved .WAV audio files. In this case, the
utterances are divided by words and, to obtain
the similarity locally, it is indicated whether
the pitch of each word has been reproduced
correctly or not and, in case it has not been
reproduced correctly, the percentage of
deviation is indicated; the percentage of pitch
similarity and the average difference between
two audios are also obtained. Finally, the
intersyllabic acoustic analysis is a comparative
analysis, syllable by syllable, of the similarity
between the tone realisation of a learner and
that of a native speaker; in this case, for each
syllable, the difference in pronunciation
concerning the reference audio is indicated, as
well as the percentage of similarity of tone and
the average difference between two audios is
obtained. According to the results obtained
through this last type of analysis, both the
similarity and the difference between the
reference audio and the learners' audio are
shown more accurately. Finally, we can see the
evolution of our students' results through the
option to view the history.</p>
        <p>Finally, we show a flowchart (Figure 3) that
provides information about the behaviour of our
plugin, exposing the functionalities and their
interrelation, as well as presenting the operators
that interact with the application and their
restrictions.</p>
      </sec>
      <sec id="sec-2-4">
        <title>4. Illustrative example of intersyllabic analysis</title>
        <p>In this section, we show how one type of
comparative analysis is carried out. To perform
the intersyllabic analysis, it is necessary to fill in
a form (Figure 4) with the data that characterise
the audio of the learner we want to compare.
2 Tone frequency in Hz
3 File with tags segmenting associated audio
Figures 4: Form for conducting an intersyllabic
analysis</p>
        <p>The audios of that student that meet these
properties are then filtered out and display a
window with a drop-down menu for the selection
of the audio to be analysed. Once the audio is
selected, the corresponding. TextGrid file is
selected in the same way.</p>
        <p>Each type of analysis returns different results.
For the intersyllabic analysis, we show a
similarity result per syllable and the average
percentage difference (Figure 5). Finally, we
obtain a graph with the tonal differentiation
curves in each syllable for each audio (Figure 6).</p>
      </sec>
      <sec id="sec-2-5">
        <title>5. Conclusions</title>
        <p>
          In conclusion, we highlight the following key
issues that we have addressed in this paper:
1. The PAFe tool allows different types of
comparative-contrastive analysis of the
intonation (global, tonal tendencies and
intersyllabic) of EFL learners and native
speakers of Spanish; Among them, we
consider the intersyllabic as the most accurate
since the results of tonal difference appear
syllable by syllable and show the tonal
deviations of the students, and the global as the
most efficient in terms of response time since
it does not require the uploading of TextGrids,
and the segmentation is done in an automated
way, as shown by the empirical data of the
Couto Fernández [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] work.
2. This application has several functions; apart
from performing the intonational analysis, it
allows to store the audios, the . TextGrid files
and the results of the analysis (the history) of
each utterance according to the profile of the
speaker (student or native speaker of Spanish).
3. PAFe has been developed to achieve the
following didactic objectives: to facilitate the
work of teachers with regard to the
identification and correction of intonation
deviations (we have carried out an empirical
analysis with teachers of Spanish as a foreign
language, where we measured the degree of
satisfaction with PAFe, with positive results,
as indicated in the work Couto Fernández [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ];
to store the results of the analyses carried out
for future improvement; to serve as a
selfevaluation and self-correction tool for ELE
students, given that the tool itself allows them
to upload .WAV and . TextGrid files, run the
analyses and obtain the results without
constant help from teachers.
        </p>
        <p>As a future line of research, we highlight the
need to measure this degree of feedback to
students empirically.</p>
        <p>As far as we know, it is the only existing
solution both under Praat and outside Praat that
allows this type of analysis and offers feedback to
the student in the Spanish language. We highlight
that as feedback and self-evaluation, our tool
offers the percentage of similarity and difference
of pitch values so that the student can correct his
pronunciation. Also, as future lines of work, we
plan to improve the graphical environment of the
plugin and open to the student, as an end user, the
possibility of its use via the web.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Boersma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Weenink</surname>
          </string-name>
          , Praat: doing phonetics by computer,
          <year>2019</year>
          . URL: http://www.praat.org/.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>F. J.</given-names>
            <surname>Cantero</surname>
          </string-name>
          <string-name>
            <surname>Serena</surname>
          </string-name>
          , Teoría y análisis de la entonación, volume
          <volume>54</volume>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>F. J.</given-names>
            <surname>Cantero</surname>
          </string-name>
          <string-name>
            <surname>Serena</surname>
          </string-name>
          ,
          <article-title>Análisis prosódico del habla: más allá de la melodía</article-title>
          , Comunicación Social: Lingüística, Medios Masivos, Arte, Etnología,
          <source>Folclor y otras ciencias afines 2</source>
          (
          <year>2019</year>
          )
          <fpage>485</fpage>
          -
          <lpage>498</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>T.</given-names>
            <surname>Couto</surname>
          </string-name>
          <string-name>
            <surname>Fernández</surname>
          </string-name>
          ,
          <article-title>Una herramienta de análisis del habla de audio para proporcionar retroalimentación automática a los estudiantes en la pronunciación en español</article-title>
          .
          <source>UDC. A Coruña.</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Dragos-Paul Pop</surname>
          </string-name>
          , Adam Altar,
          <article-title>Designing an MVC Model for Rapid Web Application Development</article-title>
          ,
          <source>Procedia Engineering</source>
          <volume>69</volume>
          (
          <year>2014</year>
          )
          <fpage>1172</fpage>
          -
          <lpage>1179</lpage>
          . DOI:
          <volume>10</volume>
          .1016/j.proeng.
          <year>2014</year>
          .
          <volume>03</volume>
          .106
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Font Rotchés</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. J.</given-names>
            <surname>Cantero</surname>
          </string-name>
          <string-name>
            <surname>Serena</surname>
          </string-name>
          ,
          <article-title>La melodía del habla: acento, ritmo y entonación</article-title>
          , Eufonía: didáctica de la música (
          <year>2008</year>
          )
          <fpage>19</fpage>
          -
          <lpage>39</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>D.</given-names>
            <surname>Font Rotchés</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. J.</given-names>
            <surname>Cantero</surname>
          </string-name>
          <string-name>
            <surname>Serena</surname>
          </string-name>
          ,
          <source>Melodic Analysis of Speech Method applied to Spanish and Catalan, Phonica</source>
          <volume>5</volume>
          (
          <year>2009</year>
          )
          <fpage>33</fpage>
          -
          <lpage>47</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>H.</given-names>
            <surname>Strik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Truong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Wet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Cucchiarini</surname>
          </string-name>
          ,
          <article-title>Comparing different approaches for automatic pronunciation error detection</article-title>
          ,
          <source>Speech Communication</source>
          <volume>51</volume>
          (
          <year>2009</year>
          )
          <fpage>845</fpage>
          -
          <lpage>852</lpage>
          . DOI:
          <volume>10</volume>
          .1016/j.specom.
          <year>2009</year>
          .
          <volume>05</volume>
          .007
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Mateo Ruiz</surname>
          </string-name>
          ,
          <article-title>Protocolo para la extracción de los datos tonales y curva estándar en análisis melódico del habla</article-title>
          ,
          <source>Phonica</source>
          <volume>6</volume>
          (
          <year>2010</year>
          )
          <fpage>49</fpage>
          -
          <lpage>90</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Mateo Ruiz</surname>
          </string-name>
          ,
          <article-title>Scripts en Praat para la extracción de datos tonales y curva estándar</article-title>
          ,
          <source>Phonica</source>
          <volume>6</volume>
          (
          <year>2010</year>
          )
          <fpage>91</fpage>
          -
          <lpage>111</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>P.</given-names>
            <surname>Oplustil</surname>
          </string-name>
          , G. Toledo,
          <article-title>Uso de una herramienta didáctica para la práctica de la entonación en hablantes no nativos de español</article-title>
          , Sintagma: Revista de lingüística
          <volume>31</volume>
          (
          <year>2019</year>
          )
          <fpage>37</fpage>
          -
          <lpage>50</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>K.</given-names>
            <surname>Schwaber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Sutherland</surname>
          </string-name>
          , La guía definitiva de scrum:
          <source>Las reglas del juego</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>