HOLLYWOOD, Calif. >> With the sun setting over the vast expanse of Los Angeles, Dwight Yoakam sighed softly as tears rolled down his cheeks. For a moment, the scene played like one of his own portraits of honky-tonk heartache and regret. But sitting in the country star’s 12th-story offices above the Sunset Strip, it became clear that the emotion gripping him was not sadness, but joy.

Forty years ago this month, Yoakam arrived with his debut, the indie EP “Guitars, Cadillacs, Etc., Etc.” The record — later expanded to a full-length — helped shake country music from its mid-1980s doldrums while starting a career filled with more than a dozen Top 10 radio hits and six platinum albums, even as Yoakam took a rebel stance, operating largely outside the Nashville, Tennessee, establishment.

At 68, as he prepares to release his 18th studio album, and his first on his own label, the ambitious Yoakam has found meaning in something other than his career: his wife, photographer Emily Joyce, whom he quietly married during the pandemic, and their 4-year-old son, Dalton.

“I’ve known the two of them since before I ever met them,” Yoakam said, drying his eyes. “Not to get overly metaphysical, but our connection in the universe, to one another, precedes us and will continue beyond us.”

The vibe shift is evident on “Brighter Days,” which will be released Friday, his first album of original material in nearly a decade, where Yoakam’s music takes on a sun-dappled optimism. It features a twangy, pedal-steel-laden track with Post Malone, a fan-turned-friend and collaborator who likewise made his name outside of country’s embrace.

“There’s certainly a feeling of things coming full circle,” Yoakam said. “But I’ve always had a sense of fate, or maybe some guardian angel nudging me along to where I find myself now.”

An interview with Yoakam is less like a conversation than a dazzling one-man show. Over the course of three pinballing hours, he offered up an impression of Marlon Brando, recited Henry Fonda’s “Grapes of Wrath” monologue, sang snatches of his favorite Monkees songs and explained how Dust Bowl migration patterns affected West Coast country music, all while weaving in references to 1950s child preacher Marjoe Gortner and 1980s stand-up comedian Sam Kinison. Yoakam’s myriad passions and dizzying digressions have found a home on the Bakersfield Beat, his satellite radio channel for SiriusXM.

“Dwight’s an encyclopedia,” said former Warner Bros. president Lenny Waronker, an early mentor, adding that the singer “knows something about everything, and he’s always poured that knowledge into his music, or whatever he does.”

A coal country intellectual, the Kentucky-born, Ohio-raised Yoakam arrived in Los Angeles in 1977, a rawboned 21-year-old “just lookin’ for a hit,” as he would later title a best-of collection. Seven years of hard graft followed as Yoakam shaped his vision and defiantly refused to play the era’s hot songs with his bar band, sticking to classics by his heroes Merle Haggard, Buck Owens and Bill Monroe. “That got us kicked out of plenty of places,” he recalled.

In the early ‘80s, Yoakam built his career from biker dives in the recesses of the San Fernando Valley to the hip Palomino Club in North Hollywood. His puckish energy and hot-wired sound endeared him to the post-punk scene, where he shared bills with X, the Blasters and Hüsker Dü. In between, there were visits to Nashville and rejections from record companies that had embraced a syrupy version of country. “What I was doing was so hillbilly,” he said, “it seemed like rock ‘n’ roll to them.”Over the years, Yoakam has co-written only sparingly, but six of the new album’s tracks were composed with a contingent of stalwart country songsmiths led by Jeffrey Steele, an outgrowth of some pandemic-lockdown-era sessions. “I’d never done that kind of writing, the collaborative group thing,” Yoakam said. “But I said, ‘Sure, I’ll jump on Zoom and give it a try.’”

He recorded the songs between 2021 and late 2023 and was about to master the album earlier this year when he learned that Post Malone was eager to appear on the project. The two had met when the pop hitmaker appeared on Yoakam’s radio show in 2018, spurring a friendship just as the younger star began planning his transition into country.

Inspired — “or maybe just under pressure to come up with something good,” Yoakam cracked — he quickly knocked out two songs while driving around running errands with his family, eventually combining the separate tunes into “I Don’t Know How to Say Goodbye (Bang Bang Boom Boom),” a charmingly shaggy duet that became the first release off “Brighter Days.”

Although heartbreak remains Yoakam’s lyrical stock in trade, the album offers a sense of his newfound domestic bliss, particularly in the devotional “I Spell Love” and the title track, which features an appearance by his son. “The first couple years, he came to a lot of my shows and stood on the side stage,” Yoakam said. “He be there with his little Telecaster ukulele playing along. It’s kind of eerie what he observes and what he imitates.”

In September, as Yoakam accepted the Americana Music Association’s lifetime achievement award in Nashville, he grew emotional thanking his wife and son for coming into his life. “That was the first time I’d ever really articulated that,” he said. “Maybe that’s what got to me that night.”

During the speech, Yoakam also reminded the audience that he has never been nominated for a Country Music Association award. His enduring status as a Nashville outsider doesn’t auger well for Yoakam’s immediate prospects of entering the Country Music Hall of Fame.

“If I’m ever acknowledged in that way, it would be a great honor,” he said, smiling. “But I’m living for something much bigger these days.”