# PBS - PreppingandCoding

**PBS: Prepping Recordings**

You will need:

* USB recorder
* (Possibly) a usb a to usb c
* ELAN loaded on the computer

#### **Import Audio Files** <a href="#e385m9o75ens" id="e385m9o75ens"></a>

1. **Plug-in the USB audio recorder** into a lab computer. A small light on the audio recorder will flash red. (Make sure it is in the OFF position)
2. On the computer, open the USB and then select \[RECORD] to view the files inside.
3. **Create a new folder** here: `Fas-Phyc-PEB Lab/experimental_projects/PBS/PBS_audio_files/[Subj#].` **Name the folder** \[PBS\_#\_Recordings]
4. **Copy the files** from the USB drive **into the folder** that you created.
5. Check through the files to **confirm that they have all imported** correctly! Listen briefly to a few of the files to confirm that they can play.
6. After confirming, delete the audio files from the USB drive.
7. Remember to ***safely eject*** the USB from the computer.

#### **Import to ELAN and Set up** <a href="#yw2p4z7xwm25" id="yw2p4z7xwm25"></a>

1. Open ELAN
2. command/ctrl+n (creates a new file)
3. This will open a window that allows you to “Add Media File..”, “Add Template File..”, and “Add Streaming File…”
4. Click “Add Media File”
5. The Media File button will take you to a file window, where you can choose you sound file. If you do not see a useable sound file, you need to convert your audio file using AUdacity Scripting Page
6. Double click on the file to add it
7. Click “Add Template…”
8. Use the PBS\_Template
9. Press OK and you will see something like this:
10. Highlight an area you’d like to annotate and click alt+N to create a new annotation

#### **Annotating files** <a href="#id-4lypju4l6436" id="id-4lypju4l6436"></a>

1. Annotating the picture book files in ELAN is similar to audio files in ELAN. Listen to the recording.

[Notes linked here: PBS Annotation Set](https://docs.google.com/document/d/1jDEJ1wUG950cc-rI8hGcQdNvd03EmPxQoUig63y7NSA/edit?usp=sharing)

FA1: Female Adult 1 - Most commonly used. If there is a second parent, one can add in MA1 for Male Adult 1, FA2 and so on, PA2 - here transcribing the text that is head. It mostly comes from the book so having the book transcript side by side helps.

CHI: For Target Child Utterances, only indicated sound by xxx. (not attempting to interpret, just the start and stop time of the vocalizations). If there is a second child adding in as&#x20;

CHI2.

xds\@FA1 - To indicate who the parent is talking to (T - target child, A- Another Adult)

txt\@FA1- To indicate if the parent is talking from the book or off-book (B - Book, C - Conversation) . This could be extended.

Comments -Any comments&#x20;

Coding Notes:&#x20;

* Onomatopoeia: When there is onomatopoeia in the transcription, follow with @o.
* If the word "apple" is said in reference to shang or similar, include the comment "Semantic neighbor."

Additional conventions:

\[!= whispers].

&=laughs

Note: Most of the utterance types in these files will be "B" for "Book Reading", but pay extra attention to different utterance types - it's easy to forget and just type "B" for everything.

**Naming Convention**

1. Save files with the following name format for .wav and .eaf files: SubID\_month\_PBS\_recording#\_coder\[initials]

Example: 25\_10\_PBS\_07\_coderHB.eaf

1. Save basic level files with the following format: SubID\_month\_PBS\_basiclevel\_coder\[initials]

Example=26\_18\_PBS\_basiclevel\_coderHW\.csv

#### **Exporting to CSV** <a href="#ey54usht4hbb" id="ey54usht4hbb"></a>

1. Open Elan: file>export multiple files as > Tab-delimited Text >New domain >add folder>okay
2. Navigate to the folder containing the annotated recordings of the subject you want
3. Select all the tiers you want included, and check the box that says “Separate column for each tier”.
4. If you want to include the start and end time for each word, check the appropriate boxes
   * The settings should look like this
   * ​\
     ![enter image description here](https://3364608434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LD2B3y86yJyNeihFLqD%2Fuploads%2FNuisSMNNyXiUfFA2Rv1o%2F0.jpeg?alt=media)\
     ​
5. Hit okay, name and save the .txt file
6. Basic Level Column: add a new column called "Basic Level" to the left of the "Comments" column on the spreadsheet, complete according to[ Basic Level Guidelines](https://bergelsonlab.gitbook.io/project/~/edit/drafts/-LKgZAJzMnwXe4A88sRW/basic-levels)​
7. Save the .txt file with the newly edited Basic Level Column
8. To Convert to CSV: Right click the .txt file > open with > Microsoft Excel
9. Save your file as a .csv


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.bergelsonlab.com/studies-in-progress/pbs/elan-analyzing-files/pbs-preppingandcoding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
