> For the complete documentation index, see [llms.txt](https://gitbook.bergelsonlab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.bergelsonlab.com/data-pipeline/speaker-codes/tvn-and-maf-speaker-code-fixes.md).

# TVN and MAF speaker code fixes

Speaker codes should be TVS and MFU at this point. If you need to replace codes in a file, here's how to do it.

We are changing **TVN** and **MAF** speaker codes in all our files because those codes overlap with CLAN tiers.

**TVN --> TVS**\
**MAF --> MFU**<br>

## Audios

1. Open the sparse\_code.cha file in Subject\_Files.
2. Navigate to "Edit" and "Replace..."
3. Complete Replace and With fields appropriately:
   1. Replace "\_TVN" with "\_TVS"
   2. Replace "\_MAF" with "\_MFU"
   3. *Be sure to include the underscore -- this ensures you don't replace the CLAN tier!*
4. Check "Case Sensitive."
5. Click "Replace All."
6. Check to make sure it worked properly. Save the file.

![](https://3364608434-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD2B3y86yJyNeihFLqD%2F-LazfaWCvjAKAGm2IWMT%2F-Lazgnkq1maSaWV50VBy%2Fclan_replace_all.1200x1200.jpeg?alt=media\&token=d8bfb033-f08a-4808-a808-6770355a2064)

## Audio Basic Levels

See [Update sparse\_code.csv's](/data-pipeline/basic-levels/update-sparse_code.csvs.md)

## Videos

1. Use the most up-to-date .opf file.
2. Use our [fix\_speakercodes](/archive/seedlings/assorted-scripts/datavyu-scripts/fix_speakercodes-script.md) script.
   * Replace "TVN" with "TVS"
   * Replace "MAF" with "MFU"
3. Quickly look through the file to make sure that the change worked correctly.
4. Save the file. (It should be saved with the same name in the same place, replacing the original.)

## Video Basic Levels

See [Update sparse\_code.csv's](/data-pipeline/basic-levels/update-sparse_code.csvs.md)
