# Path: praatio/textgrid.py
# def openTextgrid(
#     fnFullPath: str,
#     includeEmptyIntervals: bool,
#     reportingMode: Literal["silence", "warning", "error"] = "warning",
#     duplicateNamesMode: Literal["error", "rename"] = "error",
# ) -> Textgrid:
# def _dictionaryToTg(
#     tgAsDict: dict, reportingMode: Literal["silence", "warning", "error"]
# ) -> Textgrid:


import os
from os.path import join
from praatio import textgrid
"""
Praatio example of adding two tiers to the same textgrid
"""



path = join(".", "files")
outputPath = join(path, "merged_textgrids")
if not os.path.exists(outputPath):
    os.mkdir(outputPath)

tgPhones = textgrid.openTextgrid(join(path, "bobby_phones.TextGrid"), False)

# Path: praatio/textgrid.py
# def openTextgrid(
#     fnFullPath: str,
#     includeEmptyIntervals: bool,
#     reportingMode: Literal["silence", "warning", "error"] = "warning",
#     duplicateNamesMode: Literal["error", "rename"] = "error",
# ) -> Textgrid:
# def _dictionaryToTg(
#     tgAsDict: dict, reportingMode: Literal["silence", "warning", "error"]
# ) -> Textgrid:


# Path: examples/add_tiers.py
import os
from os.path import join
from praatio import textgrid

"""
Praatio example of adding two tiers to the same textgrid
"""



path = join(".", "files")
outputPath = join(path, "merged_textgrids")
if not os.path.exists(outputPath):
    os.mkdir(outputPath)

tgPhones = textgrid.openTextgrid(join(path, "bobby_phones.TextGrid"), False)

elanTgPhones = textgrid.openTextgrid(join(path, "bobby_phones_elan.TextGrid"), False)